@orbe-agro/client-core-prod 5.6.34 → 5.6.35

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 (55) hide show
  1. package/dist/@ecme/components/index.js +62 -60
  2. package/dist/@ecme/components/index.js.map +1 -1
  3. package/dist/@ecme/components/shared/MetricCard.js +39 -0
  4. package/dist/@ecme/components/shared/MetricCard.js.map +1 -0
  5. package/dist/@ecme/components/shared/index.js +30 -28
  6. package/dist/@ecme/components/shared/index.js.map +1 -1
  7. package/dist/@ecme/index.js +150 -148
  8. package/dist/@ecme/index.js.map +1 -1
  9. package/dist/@types/@ecme/components/shared/MetricCard.d.ts +13 -0
  10. package/dist/@types/@ecme/components/shared/MetricCard.d.ts.map +1 -0
  11. package/dist/@types/@ecme/components/shared/index.d.ts +1 -0
  12. package/dist/@types/@ecme/components/shared/index.d.ts.map +1 -1
  13. package/dist/@types/base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse.d.ts +9 -0
  14. package/dist/@types/base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse.d.ts.map +1 -0
  15. package/dist/@types/base/@types/api/response/bayer/TFindAllRetencaoResponse.d.ts +2 -0
  16. package/dist/@types/base/@types/api/response/bayer/TFindAllRetencaoResponse.d.ts.map +1 -1
  17. package/dist/@types/base/@types/api/response/bayer/types.d.ts +14 -0
  18. package/dist/@types/base/@types/api/response/bayer/types.d.ts.map +1 -1
  19. package/dist/@types/base/@types/enums/bayer/StatusOrbe.d.ts +6 -0
  20. package/dist/@types/base/@types/enums/bayer/StatusOrbe.d.ts.map +1 -0
  21. package/dist/@types/base/@types/enums/bayer/StatusRetencao.d.ts +6 -0
  22. package/dist/@types/base/@types/enums/bayer/StatusRetencao.d.ts.map +1 -0
  23. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +2 -0
  24. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -1
  25. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts +2 -0
  26. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts.map +1 -1
  27. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +2 -0
  28. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  29. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts +4 -1
  30. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts.map +1 -1
  31. package/dist/base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse.js +2 -0
  32. package/dist/base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse.js.map +1 -0
  33. package/dist/base/@types/api/response/bayer/types.js +8 -1
  34. package/dist/base/@types/api/response/bayer/types.js.map +1 -1
  35. package/dist/base/@types/enums/bayer/StatusOrbe.js +10 -0
  36. package/dist/base/@types/enums/bayer/StatusOrbe.js.map +1 -0
  37. package/dist/base/@types/enums/bayer/StatusRetencao.js +10 -0
  38. package/dist/base/@types/enums/bayer/StatusRetencao.js.map +1 -0
  39. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js +3 -1
  40. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js.map +1 -1
  41. package/dist/base/index.js +3 -1
  42. package/dist/base/services/index.js +3 -1
  43. package/dist/base/services/modules/bayer/entregaBayerService.js +14 -0
  44. package/dist/base/services/modules/bayer/entregaBayerService.js.map +1 -1
  45. package/dist/base/services/modules/bayer/index.js +3 -1
  46. package/lib/@ecme/components/shared/MetricCard.tsx +44 -0
  47. package/lib/@ecme/components/shared/index.tsx +1 -0
  48. package/lib/base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse.ts +8 -0
  49. package/lib/base/@types/api/response/bayer/TFindAllRetencaoResponse.ts +2 -0
  50. package/lib/base/@types/api/response/bayer/types.ts +16 -0
  51. package/lib/base/@types/enums/bayer/StatusOrbe.ts +5 -0
  52. package/lib/base/@types/enums/bayer/StatusRetencao.ts +5 -0
  53. package/lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts +2 -0
  54. package/lib/base/services/modules/bayer/entregaBayerService.ts +17 -1
  55. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { TQueryResponse } from "@base/@types/api";
2
2
  import { TFindAllEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllEntregaBayerResponse";
3
- import { EntregaResponse, FindEntregaFilterRequest, SomatorioEntregaResponse, FindEntregaResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest, QuantidadeASerRetidaPorSaldoResponse, AplicarRetencaoResponse, AtualizarQuantidadesEntregaRequest } from "@base/@types/api/response/bayer/types";
3
+ import { EntregaResponse, FindEntregaFilterRequest, SomatorioEntregaResponse, FindEntregaResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest, QuantidadeASerRetidaPorSaldoResponse, AplicarRetencaoResponse, AtualizarQuantidadesEntregaRequest, TTransacaoEntregaResponse } from "@base/@types/api/response/bayer/types";
4
+ import { TFindAllMetricsEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse";
4
5
  export declare function apiFindAllEntregaBayer(params?: string): Promise<TQueryResponse<TFindAllEntregaBayerResponse>>;
5
6
  export declare function apiCreateEntrega(saldoId: number): Promise<EntregaResponse>;
6
7
  export declare function apiEnviarEntregaBayer(id: number): Promise<void>;
@@ -12,4 +13,6 @@ export declare function apiBuscarRetornoEntregas(): Promise<void>;
12
13
  export declare function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest): Promise<AplicarRetencaoResponse>;
13
14
  export declare function apiCancelarEntregaBayer(id: number): Promise<void>;
14
15
  export declare function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest): Promise<FindEntregaResponse>;
16
+ export declare function apiFindEntregaBayerMetrics(params?: string): Promise<TFindAllMetricsEntregaBayerResponse>;
17
+ export declare function apiGetTransacoesEntrega(id: number): Promise<TTransacaoEntregaResponse[]>;
15
18
  //# sourceMappingURL=entregaBayerService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EACvB,kCAAkC,EACrC,MAAM,uCAAuC,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD;AAED,wBAAsB,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,gCAMxG"}
1
+ {"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EACvB,kCAAkC,EAClC,yBAAyB,EAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mCAAmC,EAAE,MAAM,qEAAqE,CAAC;AAI1H,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD;AAED,wBAAsB,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,gCAMxG;AAED,wBAAsB,0BAA0B,CAAC,MAAM,CAAC,EAAE,MAAM,gDAK/D;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,wCAKvD"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TFindAllMetricsEntregaBayerResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TFindAllMetricsEntregaBayerResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,9 @@
1
-
1
+ var StatusTransacaoEntrega = /* @__PURE__ */ ((StatusTransacaoEntrega2) => {
2
+ StatusTransacaoEntrega2["CONSUMO"] = "CONSUMO";
3
+ StatusTransacaoEntrega2["ESTORNO"] = "ESTORNO";
4
+ return StatusTransacaoEntrega2;
5
+ })(StatusTransacaoEntrega || {});
6
+ export {
7
+ StatusTransacaoEntrega
8
+ };
2
9
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sources":["../../../../../../lib/base/@types/api/response/bayer/types.ts"],"sourcesContent":["import { TRetornoEntregaResponse } from \"./TRetornoEntregaResponse\";\n\nexport interface RoyaltiesBusinessPartnerResponse {\n codigoBusinessPartner: string;\n}\n\nexport interface CreateRoyaltiesBusinessPartnerRequest {\n codigoBusinessPartner: string;\n}\n\nexport interface EntregaResponse {\n id: number;\n}\n\nexport interface FindEntregaFilterRequest {\n saldoEntradaGraosIdList: number[];\n}\n\nexport interface SomatorioEntregaPorGrupoResponse {\n grupo: string;\n totalQuantidadeEntregue: number;\n totalQuantidadeBaixada: number;\n totalQuantidadePendente: number;\n totalQuantidadeRetida: number;\n totalQuantidadeBaixadaConsumida: number;\n}\n\nexport interface SomatorioEntregaResponse {\n somatorios: SomatorioEntregaPorGrupoResponse[];\n}\n\nexport interface FindEntregaResponse {\n id: number;\n saldoEntradaGraosId: number;\n ticketId: number;\n codigoCentro: string;\n codigoDeposito: string;\n produtoId: number;\n safraId: number;\n produtorId: number;\n transgenia: 'INTACTA' | 'NAO_INTACTA' | 'INTACTA_NAO_DECLARADA' | 'ORIUNDO_PARTICIPANTE' | 'INTACTA_ORIUNDO_PARTICIPANTE' | 'SEM_TRANSGENIA';\n quantidadeEntregue: number;\n quantidadeBaixada: number;\n quantidadePendente: number;\n quantidadeRetida: number;\n quantidadeBaixadaConsumida: number;\n dataEntrega: string;\n status: 'POSITIVE' | 'NEGATIVE' | 'DECLARED' | 'ORIUNDO';\n retornoEntrega: TRetornoEntregaResponse;\n}\n\nexport interface ItemQuantidadeConsumidaPorSaldoEntradaGraosRequest {\n saldoEntradaGraosId: number;\n quantidadeConsumida: number;\n}\n\nexport interface QuantidadeConsumidaPorSaldoEntradaGraosRequest {\n itens: ItemQuantidadeConsumidaPorSaldoEntradaGraosRequest[];\n}\n\nexport interface ItemQuantidadeASerRetidaPorSaldoResponse {\n entregaId: number;\n saldoEntradaGraosId: number;\n quantidadeASerRetida: number;\n}\n\nexport interface QuantidadeASerRetidaPorSaldoResponse {\n businessPartnerRoyalties: string;\n itens: ItemQuantidadeASerRetidaPorSaldoResponse[];\n}\n\nexport interface ItemAplicarRetencaoResponse {\n entregaId: number;\n saldoEntradaGraosId: number;\n quantidadeRetida: number;\n fixacaoId: string;\n}\n\nexport interface AplicarRetencaoResponse {\n itens: ItemAplicarRetencaoResponse[];\n}\n\nexport interface AtualizarQuantidadesEntregaRequest {\n quantidadeEntregue: number;\n quantidadeBaixada: number;\n quantidadePendente: number;\n quantidadeRetida: number;\n quantidadeBaixadaConsumida: number;\n}\n\nexport enum StatusTransacaoEntrega {\n CONSUMO = 'CONSUMO',\n ESTORNO = 'ESTORNO',\n}\n\nexport interface TTransacaoEntregaResponse {\n id: number;\n entregaId: number;\n saldoEntradaGraosId: number;\n liquidacaoId: number;\n quantidadeBaixadaConsumida: number;\n quantidadeRetida: number;\n statusTransacaoEntrega: StatusTransacaoEntrega;\n dataTransacao: string;\n}\n"],"names":["StatusTransacaoEntrega"],"mappings":"AA0FO,IAAK,2CAAAA,4BAAL;AACLA,0BAAA,SAAA,IAAU;AACVA,0BAAA,SAAA,IAAU;AAFA,SAAAA;AAAA,GAAA,0BAAA,CAAA,CAAA;"}
@@ -0,0 +1,10 @@
1
+ var StatusOrbe = /* @__PURE__ */ ((StatusOrbe2) => {
2
+ StatusOrbe2["CONCLUIDO"] = "CONCLUIDO";
3
+ StatusOrbe2["CANCELADO"] = "CANCELADO";
4
+ StatusOrbe2["ERRO"] = "ERRO";
5
+ return StatusOrbe2;
6
+ })(StatusOrbe || {});
7
+ export {
8
+ StatusOrbe
9
+ };
10
+ //# sourceMappingURL=StatusOrbe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusOrbe.js","sources":["../../../../../lib/base/@types/enums/bayer/StatusOrbe.ts"],"sourcesContent":["export enum StatusOrbe {\n CONCLUIDO = \"CONCLUIDO\",\n CANCELADO = \"CANCELADO\",\n ERRO = \"ERRO\",\n}\n"],"names":["StatusOrbe"],"mappings":"AAAO,IAAK,+BAAAA,gBAAL;AACHA,cAAA,WAAA,IAAY;AACZA,cAAA,WAAA,IAAY;AACZA,cAAA,MAAA,IAAO;AAHC,SAAAA;AAAA,GAAA,cAAA,CAAA,CAAA;"}
@@ -0,0 +1,10 @@
1
+ var StatusRetencao = /* @__PURE__ */ ((StatusRetencao2) => {
2
+ StatusRetencao2["SUCCEEDED"] = "SUCCEEDED";
3
+ StatusRetencao2["REGISTERED"] = "REGISTERED";
4
+ StatusRetencao2["ERROR"] = "ERROR";
5
+ return StatusRetencao2;
6
+ })(StatusRetencao || {});
7
+ export {
8
+ StatusRetencao
9
+ };
10
+ //# sourceMappingURL=StatusRetencao.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusRetencao.js","sources":["../../../../../lib/base/@types/enums/bayer/StatusRetencao.ts"],"sourcesContent":["export enum StatusRetencao {\n SUCCEEDED = \"SUCCEEDED\",\n REGISTERED = \"REGISTERED\",\n ERROR = \"ERROR\",\n}\n"],"names":["StatusRetencao"],"mappings":"AAAO,IAAK,mCAAAA,oBAAL;AACHA,kBAAA,WAAA,IAAY;AACZA,kBAAA,YAAA,IAAa;AACbA,kBAAA,OAAA,IAAQ;AAHA,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;"}
@@ -9,7 +9,9 @@ const entregaBayer = {
9
9
  buscarRetorno: () => "/bayer/api/entregas/buscar-retorno",
10
10
  aplicarRetencao: () => "/bayer/api/entregas/aplicar-retencao",
11
11
  cancelarEntrega: (id) => `/bayer/api/entregas/${id}/cancelar`,
12
- atualizarQuantidades: (id) => `/bayer/api/entregas/${id}/quantidades`
12
+ atualizarQuantidades: (id) => `/bayer/api/entregas/${id}/quantidades`,
13
+ transacoes: (id) => `/bayer/api/entregas/${id}/transacoes`,
14
+ metrics: (params) => `/bayer/api/entregas/metrics?${params ?? ""}`
13
15
  };
14
16
  export {
15
17
  entregaBayer as default
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,\n atualizarQuantidades: (id: number) => `/bayer/api/entregas/${id}/quantidades`,\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;AAAA,EACvB,iBAAiB,CAAC,OAAe,uBAAuB,EAAE;AAAA,EAC1D,sBAAsB,CAAC,OAAe,uBAAuB,EAAE;AACnE;"}
1
+ {"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,\n atualizarQuantidades: (id: number) => `/bayer/api/entregas/${id}/quantidades`,\n transacoes: (id: number) => `/bayer/api/entregas/${id}/transacoes`,\n metrics: (params?: string) => `/bayer/api/entregas/metrics?${params ?? ''}`,\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;AAAA,EACvB,iBAAiB,CAAC,OAAe,uBAAuB,EAAE;AAAA,EAC1D,sBAAsB,CAAC,OAAe,uBAAuB,EAAE;AAAA,EAC/D,YAAY,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACrD,SAAS,CAAC,WAAoB,+BAA+B,UAAU,EAAE;AAC7E;"}
@@ -68,7 +68,7 @@ import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural,
68
68
  import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./services/modules/transportadora/TiposCarga/TipoCargaService.js";
69
69
  import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./services/modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
70
70
  import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
71
- import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
71
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiFindEntregaBayerMetrics, apiGetTransacoesEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
72
72
  import { apiBuscarEntradaGraos } from "./services/modules/bayer/registroEntradaBayerService.js";
73
73
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./services/modules/bayer/pendenciaBayerService.js";
74
74
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./services/modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
@@ -501,6 +501,7 @@ export {
501
501
  apiFindDocketCidadesByEstadoId,
502
502
  apiFindEmpresasIdsByCnpj,
503
503
  apiFindEntrega,
504
+ apiFindEntregaBayerMetrics,
504
505
  apiFindFavorecidoByTipoBusca,
505
506
  apiFindFornecedorNfeByCnpj,
506
507
  apiFindHistoricoAcaoByIdEntidade,
@@ -676,6 +677,7 @@ export {
676
677
  apiGetTermoFundeinfra,
677
678
  apiGetTermoFunrural,
678
679
  apiGetTipoCarga,
680
+ apiGetTransacoesEntrega,
679
681
  apiGetUsers,
680
682
  apiGetVolumeProducaoSeloSocial,
681
683
  apiGetVolumeProducaoSeloSocialBySafraId,
@@ -69,7 +69,7 @@ import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural,
69
69
  import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./modules/transportadora/TiposCarga/TipoCargaService.js";
70
70
  import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
71
71
  import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
72
- import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
72
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiFindEntregaBayerMetrics, apiGetTransacoesEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
73
73
  import { apiBuscarEntradaGraos } from "./modules/bayer/registroEntradaBayerService.js";
74
74
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./modules/bayer/pendenciaBayerService.js";
75
75
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
@@ -389,6 +389,7 @@ export {
389
389
  apiFindDocketCidadesByEstadoId,
390
390
  apiFindEmpresasIdsByCnpj,
391
391
  apiFindEntrega,
392
+ apiFindEntregaBayerMetrics,
392
393
  apiFindFavorecidoByTipoBusca,
393
394
  apiFindFornecedorNfeByCnpj,
394
395
  apiFindHistoricoAcaoByIdEntidade,
@@ -564,6 +565,7 @@ export {
564
565
  apiGetTermoFundeinfra,
565
566
  apiGetTermoFunrural,
566
567
  apiGetTipoCarga,
568
+ apiGetTransacoesEntrega,
567
569
  apiGetUsers,
568
570
  apiGetVolumeProducaoSeloSocial,
569
571
  apiGetVolumeProducaoSeloSocialBySafraId,
@@ -72,6 +72,18 @@ async function apiAtualizarQuantidadesEntrega(id, data) {
72
72
  data
73
73
  });
74
74
  }
75
+ async function apiFindEntregaBayerMetrics(params) {
76
+ return ApiService.fetchDataWithAxios({
77
+ url: ENTREGA_BAYER_ENDPOINT.metrics(params),
78
+ method: "get"
79
+ });
80
+ }
81
+ async function apiGetTransacoesEntrega(id) {
82
+ return ApiService.fetchDataWithAxios({
83
+ url: ENTREGA_BAYER_ENDPOINT.transacoes(id),
84
+ method: "get"
85
+ });
86
+ }
75
87
  export {
76
88
  apiAplicarRetencao,
77
89
  apiAtualizarQuantidadesEntrega,
@@ -83,6 +95,8 @@ export {
83
95
  apiEnviarEntregaBayerLote,
84
96
  apiFindAllEntregaBayer,
85
97
  apiFindEntrega,
98
+ apiFindEntregaBayerMetrics,
99
+ apiGetTransacoesEntrega,
86
100
  apiSomatorioEntrega
87
101
  };
88
102
  //# sourceMappingURL=entregaBayerService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse,\n AtualizarQuantidadesEntregaRequest\n} from \"@base/@types/api/response/bayer/types\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiCancelarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),\n method: 'post',\n });\n}\n\nexport async function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse, AtualizarQuantidadesEntregaRequest>({\n url: ENTREGA_BAYER_ENDPOINT.atualizarQuantidades(id),\n method: 'put',\n data,\n });\n}\n"],"names":[],"mappings":";;AAeA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAuB,QAAiB;AAC5D,SAAO,WAAW,mBAAiE;AAAA,IACjF,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,SAAiB;AACpD,SAAO,WAAW,mBAAoC;AAAA,IAClD,KAAK,uBAAuB,cAAc,OAAO;AAAA,IACjD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,sBAAsB,IAAY;AACpD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,YAAY,EAAE;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAgC;AACtE,SAAO,WAAW,mBAAuE;AAAA,IACrF,KAAK,uBAAuB,UAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,eAAe,MAAgC;AACjE,SAAO,WAAW,mBAAoE;AAAA,IAClF,KAAK,uBAAuB,KAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,4BAA4B;AAC9C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAA;AAAA,IAC5B,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAsD;AAC5F,SAAO,WAAW,mBAAyG;AAAA,IACvH,KAAK,uBAAuB,iBAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,cAAA;AAAA,IAC5B,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,mBAAmB,MAAsD;AAC3F,SAAO,WAAW,mBAA4F;AAAA,IAC1G,KAAK,uBAAuB,gBAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB,EAAE;AAAA,IAC9C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,+BAA+B,IAAY,MAA0C;AACvG,SAAO,WAAW,mBAA4E;AAAA,IAC1F,KAAK,uBAAuB,qBAAqB,EAAE;AAAA,IACnD,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
1
+ {"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse,\n AtualizarQuantidadesEntregaRequest,\n TTransacaoEntregaResponse\n} from \"@base/@types/api/response/bayer/types\";\nimport { TFindAllMetricsEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiCancelarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),\n method: 'post',\n });\n}\n\nexport async function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse, AtualizarQuantidadesEntregaRequest>({\n url: ENTREGA_BAYER_ENDPOINT.atualizarQuantidades(id),\n method: 'put',\n data,\n });\n}\n\nexport async function apiFindEntregaBayerMetrics(params?: string) {\n return ApiService.fetchDataWithAxios<TFindAllMetricsEntregaBayerResponse>({\n url: ENTREGA_BAYER_ENDPOINT.metrics(params),\n method: 'get',\n });\n}\n\nexport async function apiGetTransacoesEntrega(id: number) {\n return ApiService.fetchDataWithAxios<TTransacaoEntregaResponse[]>({\n url: ENTREGA_BAYER_ENDPOINT.transacoes(id),\n method: 'get',\n });\n}"],"names":[],"mappings":";;AAiBA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAuB,QAAiB;AAC5D,SAAO,WAAW,mBAAiE;AAAA,IACjF,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,SAAiB;AACpD,SAAO,WAAW,mBAAoC;AAAA,IAClD,KAAK,uBAAuB,cAAc,OAAO;AAAA,IACjD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,sBAAsB,IAAY;AACpD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,YAAY,EAAE;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAgC;AACtE,SAAO,WAAW,mBAAuE;AAAA,IACrF,KAAK,uBAAuB,UAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,eAAe,MAAgC;AACjE,SAAO,WAAW,mBAAoE;AAAA,IAClF,KAAK,uBAAuB,KAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,4BAA4B;AAC9C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAA;AAAA,IAC5B,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAsD;AAC5F,SAAO,WAAW,mBAAyG;AAAA,IACvH,KAAK,uBAAuB,iBAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,cAAA;AAAA,IAC5B,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,mBAAmB,MAAsD;AAC3F,SAAO,WAAW,mBAA4F;AAAA,IAC1G,KAAK,uBAAuB,gBAAA;AAAA,IAC5B,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB,EAAE;AAAA,IAC9C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,+BAA+B,IAAY,MAA0C;AACvG,SAAO,WAAW,mBAA4E;AAAA,IAC1F,KAAK,uBAAuB,qBAAqB,EAAE;AAAA,IACnD,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B,QAAiB;AAC9D,SAAO,WAAW,mBAAwD;AAAA,IACtE,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,wBAAwB,IAAY;AACtD,SAAO,WAAW,mBAAgD;AAAA,IAC9D,KAAK,uBAAuB,WAAW,EAAE;AAAA,IACzC,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -1,5 +1,5 @@
1
1
  import { apiBuscarEntradaGraos } from "./registroEntradaBayerService.js";
2
- import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
2
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiFindEntregaBayerMetrics, apiGetTransacoesEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
3
3
  import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./royaltiesBayerService.js";
4
4
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./pendenciaBayerService.js";
5
5
  import { apiFindAllRetencao } from "./retencaoBayerService.js";
@@ -23,7 +23,9 @@ export {
23
23
  apiFindAllEntregaBayer,
24
24
  apiFindAllRetencao,
25
25
  apiFindEntrega,
26
+ apiFindEntregaBayerMetrics,
26
27
  apiGetRoyaltiesBusinessPartner,
28
+ apiGetTransacoesEntrega,
27
29
  apiSomatorioEntrega
28
30
  };
29
31
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,44 @@
1
+ import type { IconType } from 'react-icons'
2
+
3
+ export interface MetricCardProps {
4
+ title: string
5
+ value: string | number
6
+ color: string
7
+ icon: IconType
8
+ iconSize?: number
9
+ iconBgClass?: string
10
+ className?: string
11
+ }
12
+
13
+ const MetricCard = ({
14
+ title,
15
+ value,
16
+ color,
17
+ icon: Icon,
18
+ iconSize = 24,
19
+ iconBgClass = 'bg-gray-900 text-white',
20
+ className = '',
21
+ }: MetricCardProps) => (
22
+ <div
23
+ className={`p-4 rounded-2xl flex flex-col justify-center ${color} min-w-[200px] flex-1 text-left overflow-hidden ${className}`}
24
+ >
25
+ <div className="mb-4 text-gray-900 font-bold text-left">{title}</div>
26
+ <div className="flex justify-between items-center relative gap-2">
27
+ <div className="min-w-0 flex-1">
28
+ <span
29
+ className="text-2xl font-bold text-gray-900 block truncate"
30
+ title={String(value)}
31
+ >
32
+ {value}
33
+ </span>
34
+ </div>
35
+ <div
36
+ className={`flex items-center justify-center min-h-12 min-w-12 max-h-12 max-w-12 rounded-full text-2xl ${iconBgClass}`}
37
+ >
38
+ <Icon size={iconSize} />
39
+ </div>
40
+ </div>
41
+ </div>
42
+ )
43
+
44
+ export default MetricCard
@@ -18,6 +18,7 @@ export { default as GrowShrinkValue } from './GrowShrinkValue'
18
18
  export { default as IconText } from './IconText'
19
19
  export { default as ImageGallery } from './ImageGallery'
20
20
  export { default as Masonry } from './Masonry'
21
+ export { default as MetricCard } from './MetricCard'
21
22
  export { default as NavToggle } from './NavToggle'
22
23
  export { default as NumericInput } from './NumericInput'
23
24
  export { default as OtpInput } from './OtpInput'
@@ -0,0 +1,8 @@
1
+ export type TFindAllMetricsEntregaBayerResponse = {
2
+ totalRegistros: number;
3
+ quantidadeEntregue: number;
4
+ quantidadeBaixada: number;
5
+ quantidadePendente: number;
6
+ quantidadeRetida: number;
7
+ quantidadeBaixadaConsumida: number;
8
+ }
@@ -1,10 +1,12 @@
1
1
  export interface TFindAllRetencaoResponse {
2
2
  id: number;
3
3
  entregaId: number;
4
+ liquidacaoId: number;
4
5
  fixacaoId: string;
5
6
  cnpjFilial: string;
6
7
  documentoProdutor: string;
7
8
  quantidadeRetida: number;
8
9
  status: 'SUCCEEDED' | 'REGISTERED' | 'ERROR';
10
+ statusOrbe: 'CONCLUIDO' | 'CANCELADO' | 'ERRO';
9
11
  dataCriacao: string;
10
12
  }
@@ -87,3 +87,19 @@ export interface AtualizarQuantidadesEntregaRequest {
87
87
  quantidadeRetida: number;
88
88
  quantidadeBaixadaConsumida: number;
89
89
  }
90
+
91
+ export enum StatusTransacaoEntrega {
92
+ CONSUMO = 'CONSUMO',
93
+ ESTORNO = 'ESTORNO',
94
+ }
95
+
96
+ export interface TTransacaoEntregaResponse {
97
+ id: number;
98
+ entregaId: number;
99
+ saldoEntradaGraosId: number;
100
+ liquidacaoId: number;
101
+ quantidadeBaixadaConsumida: number;
102
+ quantidadeRetida: number;
103
+ statusTransacaoEntrega: StatusTransacaoEntrega;
104
+ dataTransacao: string;
105
+ }
@@ -0,0 +1,5 @@
1
+ export enum StatusOrbe {
2
+ CONCLUIDO = "CONCLUIDO",
3
+ CANCELADO = "CANCELADO",
4
+ ERRO = "ERRO",
5
+ }
@@ -0,0 +1,5 @@
1
+ export enum StatusRetencao {
2
+ SUCCEEDED = "SUCCEEDED",
3
+ REGISTERED = "REGISTERED",
4
+ ERROR = "ERROR",
5
+ }
@@ -10,6 +10,8 @@ const entregaBayer = {
10
10
  aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',
11
11
  cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,
12
12
  atualizarQuantidades: (id: number) => `/bayer/api/entregas/${id}/quantidades`,
13
+ transacoes: (id: number) => `/bayer/api/entregas/${id}/transacoes`,
14
+ metrics: (params?: string) => `/bayer/api/entregas/metrics?${params ?? ''}`,
13
15
  }
14
16
 
15
17
  export default entregaBayer
@@ -10,8 +10,10 @@ import {
10
10
  QuantidadeConsumidaPorSaldoEntradaGraosRequest,
11
11
  QuantidadeASerRetidaPorSaldoResponse,
12
12
  AplicarRetencaoResponse,
13
- AtualizarQuantidadesEntregaRequest
13
+ AtualizarQuantidadesEntregaRequest,
14
+ TTransacaoEntregaResponse
14
15
  } from "@base/@types/api/response/bayer/types";
16
+ import { TFindAllMetricsEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllMetricsEntregaBayerResponse";
15
17
 
16
18
  const ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;
17
19
 
@@ -96,3 +98,17 @@ export async function apiAtualizarQuantidadesEntrega(id: number, data: Atualizar
96
98
  data,
97
99
  });
98
100
  }
101
+
102
+ export async function apiFindEntregaBayerMetrics(params?: string) {
103
+ return ApiService.fetchDataWithAxios<TFindAllMetricsEntregaBayerResponse>({
104
+ url: ENTREGA_BAYER_ENDPOINT.metrics(params),
105
+ method: 'get',
106
+ });
107
+ }
108
+
109
+ export async function apiGetTransacoesEntrega(id: number) {
110
+ return ApiService.fetchDataWithAxios<TTransacaoEntregaResponse[]>({
111
+ url: ENTREGA_BAYER_ENDPOINT.transacoes(id),
112
+ method: 'get',
113
+ });
114
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core-prod",
3
- "version": "5.6.34",
3
+ "version": "5.6.35",
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",