@orbe-agro/client-core 5.6.143 → 5.6.144

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.
@@ -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.143" : "0.0.0";
6
+ const version = true ? "5.6.144" : "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: [
@@ -2,6 +2,7 @@ declare const nfeEndpointConfig: {
2
2
  findAll: string;
3
3
  getPdf: string;
4
4
  addObservacao: string;
5
+ findEventos: string;
5
6
  };
6
7
  export default nfeEndpointConfig;
7
8
  //# sourceMappingURL=nfe.endpoint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nfe.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,iBAAiB;;;;CAItB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"nfe.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,iBAAiB;;;;;CAKtB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export declare function apiGetNfes(body: any): Promise<unknown>;
2
2
  export declare function apiGetPdf(id: any): Promise<unknown>;
3
3
  export declare function apiAddObservacao(body: any): Promise<unknown>;
4
+ export declare function apiGetEventosNfe(chaveAcesso: any): Promise<unknown>;
4
5
  //# 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"}
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,gBAAgB,CAAC,WAAW,KAAA,oBAKjD"}
@@ -2,7 +2,8 @@ const NFE_API_PATH = "/hub-fiscal/api/nfe";
2
2
  const nfeEndpointConfig = {
3
3
  findAll: `${NFE_API_PATH}/find`,
4
4
  getPdf: `${NFE_API_PATH}/pdf/`,
5
- addObservacao: `${NFE_API_PATH}/observacao`
5
+ addObservacao: `${NFE_API_PATH}/observacao`,
6
+ findEventos: `${NFE_API_PATH}/eventos/`
6
7
  };
7
8
  export {
8
9
  nfeEndpointConfig as default
@@ -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}\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;AAClC;"}
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}\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;AAChC;"}
@@ -20,8 +20,15 @@ async function apiAddObservacao(body) {
20
20
  data: body
21
21
  });
22
22
  }
23
+ async function apiGetEventosNfe(chaveAcesso) {
24
+ return ApiService.fetchDataWithAxios({
25
+ url: nfeEndpointConfig.findEventos + chaveAcesso,
26
+ method: "get"
27
+ });
28
+ }
23
29
  export {
24
30
  apiAddObservacao,
31
+ apiGetEventosNfe,
25
32
  apiGetNfes,
26
33
  apiGetPdf
27
34
  };
@@ -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}"],"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;"}
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 apiGetEventosNfe(chaveAcesso) {\n return ApiService.fetchDataWithAxios({\n url: nfeEndpointConfig.findEventos + chaveAcesso,\n method: 'get',\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,iBAAiB,aAAa;AAChD,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,kBAAkB,cAAc;AAAA,IACrC,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -3,7 +3,8 @@ const NFE_API_PATH = '/hub-fiscal/api/nfe'
3
3
  const nfeEndpointConfig = {
4
4
  findAll: `${NFE_API_PATH}/find`,
5
5
  getPdf: `${NFE_API_PATH}/pdf/`,
6
- addObservacao: `${NFE_API_PATH}/observacao`,
6
+ addObservacao: `${NFE_API_PATH}/observacao`,
7
+ findEventos: `${NFE_API_PATH}/eventos/`,
7
8
  }
8
9
 
9
10
  export default nfeEndpointConfig
@@ -22,4 +22,11 @@ export async function apiAddObservacao(body) {
22
22
  method: 'post',
23
23
  data: body,
24
24
  })
25
+ }
26
+
27
+ export async function apiGetEventosNfe(chaveAcesso) {
28
+ return ApiService.fetchDataWithAxios({
29
+ url: nfeEndpointConfig.findEventos + chaveAcesso,
30
+ method: 'get',
31
+ })
25
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.143",
3
+ "version": "5.6.144",
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",