@orbe-agro/client-core 5.6.112 → 5.6.117

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.
Files changed (94) hide show
  1. package/dist/@ecme/configs/chart.config.js +4 -0
  2. package/dist/@ecme/configs/chart.config.js.map +1 -1
  3. package/dist/@ecme/views/ui-components/graph/Charts/DashedLine.js +4 -0
  4. package/dist/@ecme/views/ui-components/graph/Charts/DashedLine.js.map +1 -1
  5. package/dist/@types/@ecme/configs/chart.config.d.ts.map +1 -1
  6. package/dist/@types/@ecme/views/ui-components/graph/Charts/DashedLine.d.ts.map +1 -1
  7. package/dist/@types/base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse.d.ts +8 -0
  8. package/dist/@types/base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse.d.ts.map +1 -0
  9. package/dist/@types/base/@types/models/ativos/ativo.d.ts +5 -0
  10. package/dist/@types/base/@types/models/ativos/ativo.d.ts.map +1 -1
  11. package/dist/@types/base/@types/models/ativos/documentacao.d.ts +14 -0
  12. package/dist/@types/base/@types/models/ativos/documentacao.d.ts.map +1 -1
  13. package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts +1 -0
  14. package/dist/@types/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.d.ts.map +1 -1
  15. package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts +24 -0
  16. package/dist/@types/base/configs/endpoints.config/ativos/ativos.d.ts.map +1 -1
  17. package/dist/@types/base/configs/endpoints.config/ativos/config/ativo.d.ts +16 -0
  18. package/dist/@types/base/configs/endpoints.config/ativos/config/ativo.d.ts.map +1 -1
  19. package/dist/@types/base/configs/endpoints.config/ativos/config/documentacao.d.ts +4 -0
  20. package/dist/@types/base/configs/endpoints.config/ativos/config/documentacao.d.ts.map +1 -1
  21. package/dist/@types/base/configs/endpoints.config/ativos/config/internetProtocol.d.ts +4 -0
  22. package/dist/@types/base/configs/endpoints.config/ativos/config/internetProtocol.d.ts.map +1 -1
  23. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +28 -0
  24. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  25. package/dist/@types/base/configs/endpoints.config/originacao/config/termoFunrural.d.ts +4 -0
  26. package/dist/@types/base/configs/endpoints.config/originacao/config/termoFunrural.d.ts.map +1 -1
  27. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +4 -0
  28. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
  29. package/dist/@types/base/configs/navigation.config/submenu/racao/config/clientes.submenu.d.ts +4 -0
  30. package/dist/@types/base/configs/navigation.config/submenu/racao/config/clientes.submenu.d.ts.map +1 -0
  31. package/dist/@types/base/configs/navigation.config/submenu/racao/sap.submenu.d.ts.map +1 -1
  32. package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts +1 -0
  33. package/dist/@types/base/services/modules/HubFiscal/NfeService.d.ts.map +1 -1
  34. package/dist/@types/base/services/modules/ativos/ativo/AtivoService.d.ts +11 -1
  35. package/dist/@types/base/services/modules/ativos/ativo/AtivoService.d.ts.map +1 -1
  36. package/dist/@types/base/services/modules/ativos/documentacao/DocumentacaoService.d.ts +1 -0
  37. package/dist/@types/base/services/modules/ativos/documentacao/DocumentacaoService.d.ts.map +1 -1
  38. package/dist/@types/base/services/modules/ativos/internetProtocol/InternetProtocolService.d.ts +1 -0
  39. package/dist/@types/base/services/modules/ativos/internetProtocol/InternetProtocolService.d.ts.map +1 -1
  40. package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts +3 -1
  41. package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map +1 -1
  42. package/dist/base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse.js +2 -0
  43. package/dist/base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse.js.map +1 -0
  44. package/dist/base/@types/models/ativos/ativo.js.map +1 -1
  45. package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js +2 -1
  46. package/dist/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.js.map +1 -1
  47. package/dist/base/configs/endpoints.config/ativos/config/ativo.js +4 -1
  48. package/dist/base/configs/endpoints.config/ativos/config/ativo.js.map +1 -1
  49. package/dist/base/configs/endpoints.config/ativos/config/documentacao.js +2 -1
  50. package/dist/base/configs/endpoints.config/ativos/config/documentacao.js.map +1 -1
  51. package/dist/base/configs/endpoints.config/ativos/config/internetProtocol.js +2 -1
  52. package/dist/base/configs/endpoints.config/ativos/config/internetProtocol.js.map +1 -1
  53. package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js +1 -0
  54. package/dist/base/configs/endpoints.config/originacao/config/termoFunrural.js.map +1 -1
  55. package/dist/base/configs/navigation.config/submenu/racao/config/clientes.submenu.js +16 -0
  56. package/dist/base/configs/navigation.config/submenu/racao/config/clientes.submenu.js.map +1 -0
  57. package/dist/base/configs/navigation.config/submenu/racao/sap.submenu.js +2 -0
  58. package/dist/base/configs/navigation.config/submenu/racao/sap.submenu.js.map +1 -1
  59. package/dist/base/index.js +10 -4
  60. package/dist/base/services/index.js +10 -4
  61. package/dist/base/services/modules/HubFiscal/NfeService.js +8 -1
  62. package/dist/base/services/modules/HubFiscal/NfeService.js.map +1 -1
  63. package/dist/base/services/modules/ativos/ativo/AtivoService.js +24 -0
  64. package/dist/base/services/modules/ativos/ativo/AtivoService.js.map +1 -1
  65. package/dist/base/services/modules/ativos/documentacao/DocumentacaoService.js +7 -0
  66. package/dist/base/services/modules/ativos/documentacao/DocumentacaoService.js.map +1 -1
  67. package/dist/base/services/modules/ativos/index.js +8 -3
  68. package/dist/base/services/modules/ativos/internetProtocol/InternetProtocolService.js +7 -0
  69. package/dist/base/services/modules/ativos/internetProtocol/InternetProtocolService.js.map +1 -1
  70. package/dist/base/services/modules/index.js +10 -4
  71. package/dist/base/services/modules/originacao/index.js +2 -1
  72. package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js +13 -6
  73. package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js.map +1 -1
  74. package/lib/@ecme/configs/chart.config.ts +18 -0
  75. package/lib/@ecme/views/ui-components/graph/Charts/DashedLine.tsx +18 -0
  76. package/lib/base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse.ts +7 -0
  77. package/lib/base/@types/models/ativos/ativo.ts +6 -0
  78. package/lib/base/@types/models/ativos/documentacao.ts +14 -0
  79. package/lib/base/@types/models/ativos/sistemaOperacional.ts +1 -1
  80. package/lib/base/@types/models/ativos/software.ts +1 -1
  81. package/lib/base/@types/models/ativos/versaoMSOffice.ts +1 -1
  82. package/lib/base/configs/endpoints.config/HubFiscal/nfe.endpoint.config.ts +1 -0
  83. package/lib/base/configs/endpoints.config/ativos/config/ativo.ts +3 -0
  84. package/lib/base/configs/endpoints.config/ativos/config/documentacao.ts +1 -0
  85. package/lib/base/configs/endpoints.config/ativos/config/internetProtocol.ts +1 -0
  86. package/lib/base/configs/endpoints.config/originacao/config/termoFunrural.ts +1 -0
  87. package/lib/base/configs/navigation.config/submenu/racao/config/clientes.submenu.ts +16 -0
  88. package/lib/base/configs/navigation.config/submenu/racao/sap.submenu.ts +2 -0
  89. package/lib/base/services/modules/HubFiscal/NfeService.ts +7 -0
  90. package/lib/base/services/modules/ativos/ativo/AtivoService.ts +26 -1
  91. package/lib/base/services/modules/ativos/documentacao/DocumentacaoService.ts +7 -0
  92. package/lib/base/services/modules/ativos/internetProtocol/InternetProtocolService.ts +7 -0
  93. package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +15 -7
  94. package/package.json +1 -1
@@ -20,12 +20,6 @@ async function apiFindMonitorTermoFunrural(params) {
20
20
  method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method
21
21
  });
22
22
  }
23
- async function apiExistePorCpfTermoFunrural(cpf, ano) {
24
- return ApiService.fetchDataWithAxios({
25
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
26
- method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method
27
- });
28
- }
29
23
  async function apiCancelarTermoFunrural(id, motivo) {
30
24
  return ApiService.fetchDataWithAxios({
31
25
  url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,
@@ -64,12 +58,25 @@ async function apiUploadArquivoAssinado(id, formData) {
64
58
  }
65
59
  });
66
60
  }
61
+ async function apiExistePorCpfTermoFunrural(cpf, ano) {
62
+ return ApiService.fetchDataWithAxios({
63
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
64
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method
65
+ });
66
+ }
67
+ async function apiFindTermoFunruralMetrics() {
68
+ return ApiService.fetchDataWithAxios({
69
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,
70
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.method
71
+ });
72
+ }
67
73
  export {
68
74
  apiAddTermoFunrural,
69
75
  apiAprovarTermoFunrural,
70
76
  apiCancelarTermoFunrural,
71
77
  apiExistePorCpfTermoFunrural,
72
78
  apiFindMonitorTermoFunrural,
79
+ apiFindTermoFunruralMetrics,
73
80
  apiGetTermoFunrural,
74
81
  apiReabrirTermoFunrural,
75
82
  apiReprovarTermoFunrural,
@@ -1 +1 @@
1
- {"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["endpointConfig"],"mappings":";;AAKA,MAAM,kCAAkCA,yBAAe,WAAW;AAElE,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,IAAI;AAAA,IACzC,QAAQ,gCAAgC,IAAI;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7D,QAAQ,gCAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsB,4BAA4B,QAAgB;AAC9D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,YAAY,WAAW,IAAI,MAAM;AAAA,IACtE,QAAQ,gCAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEA,eAAsB,6BAA6B,KAAa,KAAa;AACzE,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gCAAgC,aAAa,WAAW,QAAQ,GAAG,QAAQ,GAAG;AAAA,IACnF,QAAQ,gCAAgC,aAAa;AAAA,EAAA,CACxD;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,yBAAyB,IAAY,UAAoB;AAC3E,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,cAAc,SAAS,QAAQ,QAAQ,GAAG,UAAU;AAAA,IACzF,QAAQ,gCAAgC,cAAc;AAAA,IACtD,MAAM;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
1
+ {"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\nimport { TFindAllMetricsTermoFunruralResponse } from '@base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n\nexport async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,\n });\n}\n\nexport async function apiFindTermoFunruralMetrics() {\n return ApiService.fetchDataWithAxios<TFindAllMetricsTermoFunruralResponse>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.method,\n });\n}\n"],"names":["endpointConfig"],"mappings":";;AAMA,MAAM,kCAAkCA,yBAAe,WAAW;AAElE,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,IAAI;AAAA,IACzC,QAAQ,gCAAgC,IAAI;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,oBAAoB,IAAY;AAClD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,GAAG,EAAE;AAAA,IAC7D,QAAQ,gCAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsB,4BAA4B,QAAgB;AAC9D,SAAO,WAAW,mBAAmD;AAAA,IACjE,KAAK,gCAAgC,YAAY,WAAW,IAAI,MAAM;AAAA,IACtE,QAAQ,gCAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,yBAAyB,IAAY,QAAgB;AACvE,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,SAAS,WAAW,GAAG,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,OAAA;AAAA,EAAO,CAClB;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAmC;AAAA,IACjD,KAAK,gCAAgC,QAAQ,WAAW,IAAI,EAAE;AAAA,IAC9D,QAAQ,gCAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,GAAA;AAAA,EAAG,CACd;AACL;AAEA,eAAsB,yBAAyB,IAAY,UAAoB;AAC3E,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,cAAc,SAAS,QAAQ,QAAQ,GAAG,UAAU;AAAA,IACzF,QAAQ,gCAAgC,cAAc;AAAA,IACtD,MAAM;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;AAEA,eAAsB,6BAA6B,KAAa,KAAa;AACzE,SAAO,WAAW,mBAA4B;AAAA,IAC1C,KAAK,gCAAgC,aAAa,WAAW,QAAQ,GAAG,QAAQ,GAAG;AAAA,IACnF,QAAQ,gCAAgC,aAAa;AAAA,EAAA,CACxD;AACL;AAEA,eAAsB,8BAA8B;AAChD,SAAO,WAAW,mBAAyD;AAAA,IACvE,KAAK,gCAAgC,eAAe;AAAA,IACpD,QAAQ,gCAAgC,eAAe;AAAA,EAAA,CAC1D;AACL;"}
@@ -4,6 +4,24 @@ import type { ApexOptions } from 'apexcharts'
4
4
  const formatTooltipValue = (val: number | string | undefined): string =>
5
5
  `${val ?? ''}`
6
6
 
7
+ type ApexLegendHoverOpts = {
8
+ seriesIndex?: number
9
+ dataPointIndex?: number
10
+ w?: {
11
+ globals?: {
12
+ series?: unknown[][]
13
+ }
14
+ }
15
+ }
16
+
17
+ const getLegendHoverPointValue = (opts: unknown) => {
18
+ const hoverOpts = opts as ApexLegendHoverOpts | undefined
19
+
20
+ return hoverOpts?.w?.globals?.series?.[hoverOpts.seriesIndex ?? -1]?.[
21
+ hoverOpts.dataPointIndex ?? -1
22
+ ]
23
+ }
24
+
7
25
  export const apexLineChartDefaultOption: ApexOptions = {
8
26
  chart: {
9
27
  zoom: {
@@ -1,6 +1,24 @@
1
1
  import Chart from 'react-apexcharts'
2
2
  import { COLORS } from '@/constants/chart.constant'
3
3
 
4
+ type ApexLegendHoverOpts = {
5
+ seriesIndex?: number
6
+ dataPointIndex?: number
7
+ w?: {
8
+ globals?: {
9
+ series?: unknown[][]
10
+ }
11
+ }
12
+ }
13
+
14
+ const getLegendHoverPointValue = (opts: unknown) => {
15
+ const hoverOpts = opts as ApexLegendHoverOpts | undefined
16
+
17
+ return hoverOpts?.w?.globals?.series?.[hoverOpts.seriesIndex ?? -1]?.[
18
+ hoverOpts.dataPointIndex ?? -1
19
+ ]
20
+ }
21
+
4
22
  const DashedLine = () => {
5
23
  const data = [
6
24
  {
@@ -0,0 +1,7 @@
1
+ export type TFindAllMetricsTermoFunruralResponse = {
2
+ quantidadeTotal: number;
3
+ totalSenar: number;
4
+ totalFunrural: number;
5
+ totalAssinadoSenar: number;
6
+ totalAssinadoFunrural: number;
7
+ }
@@ -147,4 +147,10 @@ export type TManutencao = {
147
147
  resultadoManutencao?: string
148
148
  responsavelManutencao?: string
149
149
  finalizarManutencao?: string
150
+ }
151
+
152
+ export type TDevolverLocadora = {
153
+ ativoId: number
154
+ numeroSerie: string
155
+ motivoDevolucao: string
150
156
  }
@@ -38,9 +38,14 @@ export type TContrato = {
38
38
 
39
39
  export type TContratoPorValor = {
40
40
  id?: number
41
+ numeroSerie: string
41
42
  valorCobrar: number
42
43
  dataInicioAluguel: string
43
44
  dataFinalAluguel: string
45
+ monitor?: boolean
46
+ monitorTelaId?: number
47
+ numeroSerieMonitor?: string
48
+ valorCobrarMonitor?: number
44
49
  }
45
50
 
46
51
  export type TContratoPorItens = {
@@ -49,15 +54,24 @@ export type TContratoPorItens = {
49
54
  valorCobrar: number
50
55
  dataInicioAluguel: string
51
56
  dataFinalAluguel: string
57
+ monitor?: boolean
58
+ monitorTelaId?: number
59
+ numeroSerieMonitor?: string
60
+ valorCobrarMonitor?: number
52
61
  }
53
62
 
54
63
  export type TNotaFiscal = {
55
64
  id?: number
56
65
  notaFiscal: string
66
+ numeroSerie: string
57
67
  garantia?: boolean | null
58
68
  dataInicioGarantia?: string
59
69
  dataFinalGarantia?: string
60
70
  dataAquisicao: string
61
71
  anexosNotaFiscal?: TAnexoComponente[]
72
+ monitor?: boolean
73
+ monitorTelaId?: number
74
+ numeroSerieMonitor?: string
75
+ valorCobrarMonitor?: number
62
76
  }
63
77
 
@@ -17,4 +17,4 @@ export type TSistemaOperacional = {
17
17
  formaPagamento?: string
18
18
  anexosContrato?: TAnexoComponente[]
19
19
  anexosNotaFiscal?: TAnexoComponente[]
20
- }
20
+ }
@@ -21,4 +21,4 @@ export type TSoftware = {
21
21
  dataFinal?: string
22
22
  anexosContrato?: TAnexoComponente[]
23
23
  anexosNotaFiscal?: TAnexoComponente[]
24
- }
24
+ }
@@ -18,4 +18,4 @@ export type TVersaoMSOffice = {
18
18
  formaPagamento?: string
19
19
  anexosContrato?: TAnexoComponente[]
20
20
  anexosNotaFiscal?: TAnexoComponente[]
21
- }
21
+ }
@@ -2,6 +2,7 @@ const NFE_API_PATH = '/hub-fiscal/api/nfe'
2
2
 
3
3
  const nfeEndpointConfig = {
4
4
  findAll: `${NFE_API_PATH}/find`,
5
+ getPdf: `${NFE_API_PATH}/pdf/`,
5
6
  }
6
7
 
7
8
  export default nfeEndpointConfig
@@ -11,6 +11,9 @@ const ativo = {
11
11
  devolver: { endpoint: `${ATIVO_BASE_URL}/devolver`, method: 'post' },
12
12
  transferir: { endpoint: `${ATIVO_BASE_URL}/transferir`, method: 'post' },
13
13
  reparar: { endpoint: `${ATIVO_BASE_URL}/reparar`, method: 'post' },
14
+ devolverLocadora: { endpoint: `${ATIVO_BASE_URL}/devolver-locadora`, method: 'post' },
15
+ historico: { findByTipoAcao: { endpoint: `${ATIVO_BASE_URL}/historico/find-by-tipo-acao`, method: 'post' } },
16
+ substituicao: { findByAtivos: { endpoint: `${ATIVO_BASE_URL}/substituicao/find-by-ativos`, method: 'post' } },
14
17
  }
15
18
 
16
19
  export default ativo
@@ -6,6 +6,7 @@ const documentacao = {
6
6
  update: { endpoint: `${DOCUMENTACAO_BASE_URL}`, method: 'put' },
7
7
  delete: { endpoint: `${DOCUMENTACAO_BASE_URL}/`, method: 'delete' },
8
8
  findMonitor: { endpoint: `${DOCUMENTACAO_BASE_URL}/find-monitor`, method: 'post' },
9
+ disponiveis: { endpoint: `${DOCUMENTACAO_BASE_URL}/disponiveis`, method: 'get' },
9
10
  }
10
11
 
11
12
  export default documentacao
@@ -6,6 +6,7 @@ const internetProtocol = {
6
6
  update: { endpoint: `${INTERNET_PROTOCOL_BASE_URL}`, method: 'put' },
7
7
  delete: { endpoint: `${INTERNET_PROTOCOL_BASE_URL}/`, method: 'delete' },
8
8
  findMonitor: { endpoint: `${INTERNET_PROTOCOL_BASE_URL}/find-monitor`, method: 'post' },
9
+ disponiveis: { endpoint: `${INTERNET_PROTOCOL_BASE_URL}/disponiveis`, method: 'get' },
9
10
  }
10
11
 
11
12
  export default internetProtocol
@@ -5,6 +5,7 @@ const termoFunrural = {
5
5
  findOne: { endpoint: `${TERMO_FUNRURAL_URL}`, method: 'get' },
6
6
  findMonitor: { endpoint: `${TERMO_FUNRURAL_URL}/find-monitor`, method: 'get' },
7
7
  existePorCpf: { endpoint: `${TERMO_FUNRURAL_URL}/existe-por-cpf`, method: 'get' },
8
+ findAllMetrics: { endpoint: `${TERMO_FUNRURAL_URL}/metrics`, method: 'get' },
8
9
  cancelar: { endpoint: `${TERMO_FUNRURAL_URL}/cancelar/`, method: 'post' },
9
10
  reprovar: { endpoint: `${TERMO_FUNRURAL_URL}/reprovar/`, method: 'post' },
10
11
  aprovar: { endpoint: `${TERMO_FUNRURAL_URL}/aprovar`, method: 'post' },
@@ -0,0 +1,16 @@
1
+ import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'
2
+ import { ADMIN } from '@/constants/roles.constant'
3
+ import { NavigationTree } from '@/@types/navigation'
4
+
5
+ const clientesSubmenu: NavigationTree = {
6
+ key: 'modules.racao.clientes',
7
+ path: '/racao/clientes',
8
+ title: 'Clientes',
9
+ translateKey: 'nav.modules.racao.clientes',
10
+ icon: '',
11
+ type: NAV_ITEM_TYPE_ITEM,
12
+ authority: [ADMIN],
13
+ subMenu: [],
14
+ }
15
+
16
+ export default clientesSubmenu
@@ -1,7 +1,9 @@
1
1
  import { NavigationTree } from "@/@types/navigation"
2
+ import clientesSubmenu from "./config/clientes.submenu"
2
3
  import partidasSubmenu from "./config/partidas.submenu"
3
4
 
4
5
  const sapSubmenu: NavigationTree[] = [
6
+ clientesSubmenu,
5
7
  partidasSubmenu
6
8
  ]
7
9
 
@@ -7,4 +7,11 @@ export async function apiGetNfes(body) {
7
7
  method: 'post',
8
8
  data: body,
9
9
  })
10
+ }
11
+
12
+ export async function apiGetPdf(id) {
13
+ return ApiService.fetchDataWithAxios({
14
+ url: nfeEndpointConfig.getPdf + id,
15
+ method: 'get',
16
+ })
10
17
  }
@@ -1,6 +1,6 @@
1
1
  import ApiService from "@/services/ApiService";
2
2
  import { IFilterParams, TQueryResponse } from "@base/@types/api";
3
- import { TAtivo, TDevolucao, TDisponibilizacao, TManutencao, TTransferencia } from "@base/@types/models/ativos/ativo";
3
+ import { TAtivo, TDevolucao, TDevolverLocadora, TDisponibilizacao, TManutencao, TTransferencia } from "@base/@types/models/ativos/ativo";
4
4
  import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
5
5
 
6
6
  const ATIVO_ENDPOINT = endpointConfig.ativos.ativo;
@@ -81,4 +81,29 @@ export async function apiRepararAtivosAtivo(body: TManutencao & { idsResponsavei
81
81
  method: ATIVO_ENDPOINT.reparar.method,
82
82
  data: body,
83
83
  })
84
+ }
85
+
86
+ export async function apiDevolverLocadoraAtivosAtivo(body: TDevolverLocadora) {
87
+ return ApiService.fetchDataWithAxios<TQueryResponse<TDevolverLocadora>>({
88
+ url: ATIVO_ENDPOINT.devolverLocadora.endpoint,
89
+ method: ATIVO_ENDPOINT.devolverLocadora.method,
90
+ data: body,
91
+ })
92
+ }
93
+
94
+
95
+ export async function apiFindHistoricoByTipoAcao(body: { ativoId: number; tipoAcao?: string }) {
96
+ return ApiService.fetchDataWithAxios<any[]>({
97
+ url: ATIVO_ENDPOINT.historico.findByTipoAcao.endpoint,
98
+ method: ATIVO_ENDPOINT.historico.findByTipoAcao.method,
99
+ data: body,
100
+ })
101
+ }
102
+
103
+ export async function apiFindSubstituicaoByAtivos(body: { ativoId: number | null; formularioCamposId?: string; statusAtivo?: string }) {
104
+ return ApiService.fetchDataWithAxios<any[]>({
105
+ url: ATIVO_ENDPOINT.substituicao.findByAtivos.endpoint,
106
+ method: ATIVO_ENDPOINT.substituicao.findByAtivos.method,
107
+ data: body,
108
+ })
84
109
  }
@@ -42,3 +42,10 @@ export async function apiFindMonitorAtivosDocumentacao(body?: IFilterParams) {
42
42
  data: body,
43
43
  })
44
44
  }
45
+
46
+ export async function apiGetAtivosDocumentacaoDisponiveis() {
47
+ return ApiService.fetchDataWithAxios<TQueryResponse<TDocumentacao>>({
48
+ url: DOCUMENTACAO_ENDPOINT.disponiveis.endpoint,
49
+ method: DOCUMENTACAO_ENDPOINT.disponiveis.method,
50
+ })
51
+ }
@@ -42,3 +42,10 @@ export async function apiFindMonitorAtivosInternetProtocol(body?: IFilterParams)
42
42
  data: body,
43
43
  })
44
44
  }
45
+
46
+ export async function apiGetAtivosInternetProtocolDisponiveis() {
47
+ return ApiService.fetchDataWithAxios<TQueryResponse<TInternetProtocol>>({
48
+ url: INTERNET_PROTOCOL_ENDPOINT.disponiveis.endpoint,
49
+ method: INTERNET_PROTOCOL_ENDPOINT.disponiveis.method,
50
+ })
51
+ }
@@ -2,6 +2,7 @@ import { IFilterParams, TQueryResponse } from '@base/@types/api'
2
2
  import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
3
3
  import ApiService from '@/services/ApiService'
4
4
  import { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';
5
+ import { TFindAllMetricsTermoFunruralResponse } from '@base/@types/api/response/originacao/TFindAllMetricsTermoFunruralResponse';
5
6
 
6
7
  const TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;
7
8
 
@@ -27,13 +28,6 @@ export async function apiFindMonitorTermoFunrural(params: string) {
27
28
  });
28
29
  }
29
30
 
30
- export async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {
31
- return ApiService.fetchDataWithAxios<boolean>({
32
- url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
33
- method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,
34
- });
35
- }
36
-
37
31
  export async function apiCancelarTermoFunrural(id: number, motivo: string) {
38
32
  return ApiService.fetchDataWithAxios<void>({
39
33
  url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,
@@ -76,3 +70,17 @@ export async function apiUploadArquivoAssinado(id: number, formData: FormData) {
76
70
  },
77
71
  });
78
72
  }
73
+
74
+ export async function apiExistePorCpfTermoFunrural(cpf: string, ano: number) {
75
+ return ApiService.fetchDataWithAxios<boolean>({
76
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.endpoint + `?cpf=${cpf}&ano=${ano}`,
77
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.existePorCpf.method,
78
+ });
79
+ }
80
+
81
+ export async function apiFindTermoFunruralMetrics() {
82
+ return ApiService.fetchDataWithAxios<TFindAllMetricsTermoFunruralResponse>({
83
+ url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.endpoint,
84
+ method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findAllMetrics.method,
85
+ });
86
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.112",
3
+ "version": "5.6.117",
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",