@orbe-agro/client-core 5.3.267 → 5.3.268

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 (89) hide show
  1. package/dist/@types/base/@types/api/response/bayer/TCreateRoyaltiesBusinessPartnerRequest.d.ts +4 -0
  2. package/dist/@types/base/@types/api/response/bayer/TCreateRoyaltiesBusinessPartnerRequest.d.ts.map +1 -0
  3. package/dist/@types/base/@types/api/response/bayer/TFindAllPendenciaResponse.d.ts +10 -0
  4. package/dist/@types/base/@types/api/response/bayer/TFindAllPendenciaResponse.d.ts.map +1 -0
  5. package/dist/@types/base/@types/api/response/bayer/TRoyaltiesBusinessPartnerResponse.d.ts +4 -0
  6. package/dist/@types/base/@types/api/response/bayer/TRoyaltiesBusinessPartnerResponse.d.ts.map +1 -0
  7. package/dist/@types/base/@types/api/response/bayer/types.d.ts +69 -0
  8. package/dist/@types/base/@types/api/response/bayer/types.d.ts.map +1 -0
  9. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +19 -0
  10. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts +6 -0
  12. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts.map +1 -1
  13. package/dist/@types/base/configs/endpoints.config/bayer/config/pendenciaBayer.d.ts +8 -0
  14. package/dist/@types/base/configs/endpoints.config/bayer/config/pendenciaBayer.d.ts.map +1 -0
  15. package/dist/@types/base/configs/endpoints.config/bayer/config/registroEntradaBayer.d.ts +5 -0
  16. package/dist/@types/base/configs/endpoints.config/bayer/config/registroEntradaBayer.d.ts.map +1 -0
  17. package/dist/@types/base/configs/endpoints.config/bayer/config/royaltiesBayer.d.ts +6 -0
  18. package/dist/@types/base/configs/endpoints.config/bayer/config/royaltiesBayer.d.ts.map +1 -0
  19. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +19 -0
  20. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  21. package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/pendencia/submenu.pendencia.d.ts +4 -0
  22. package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/pendencia/submenu.pendencia.d.ts.map +1 -0
  23. package/dist/@types/base/configs/navigation.config/submenu/bayer/bayer.submenu.d.ts.map +1 -1
  24. package/dist/@types/base/services/index.d.ts +1 -0
  25. package/dist/@types/base/services/index.d.ts.map +1 -1
  26. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts +9 -0
  27. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts.map +1 -1
  28. package/dist/@types/base/services/modules/bayer/index.d.ts +5 -0
  29. package/dist/@types/base/services/modules/bayer/index.d.ts.map +1 -0
  30. package/dist/@types/base/services/modules/bayer/pendenciaBayerService.d.ts +7 -0
  31. package/dist/@types/base/services/modules/bayer/pendenciaBayerService.d.ts.map +1 -0
  32. package/dist/@types/base/services/modules/bayer/registroEntradaBayerService.d.ts +2 -0
  33. package/dist/@types/base/services/modules/bayer/registroEntradaBayerService.d.ts.map +1 -0
  34. package/dist/@types/base/services/modules/bayer/royaltiesBayerService.d.ts +4 -0
  35. package/dist/@types/base/services/modules/bayer/royaltiesBayerService.d.ts.map +1 -0
  36. package/dist/base/@types/api/response/bayer/TCreateRoyaltiesBusinessPartnerRequest.js +2 -0
  37. package/dist/base/@types/api/response/bayer/TCreateRoyaltiesBusinessPartnerRequest.js.map +1 -0
  38. package/dist/base/@types/api/response/bayer/TFindAllPendenciaResponse.js +2 -0
  39. package/dist/base/@types/api/response/bayer/TFindAllPendenciaResponse.js.map +1 -0
  40. package/dist/base/@types/api/response/bayer/TRoyaltiesBusinessPartnerResponse.js +2 -0
  41. package/dist/base/@types/api/response/bayer/TRoyaltiesBusinessPartnerResponse.js.map +1 -0
  42. package/dist/base/@types/api/response/bayer/types.js +2 -0
  43. package/dist/base/@types/api/response/bayer/types.js.map +1 -0
  44. package/dist/base/configs/endpoints.config/bayer/bayer.js +7 -1
  45. package/dist/base/configs/endpoints.config/bayer/bayer.js.map +1 -1
  46. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js +8 -2
  47. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js.map +1 -1
  48. package/dist/base/configs/endpoints.config/bayer/config/pendenciaBayer.js +10 -0
  49. package/dist/base/configs/endpoints.config/bayer/config/pendenciaBayer.js.map +1 -0
  50. package/dist/base/configs/endpoints.config/bayer/config/registroEntradaBayer.js +7 -0
  51. package/dist/base/configs/endpoints.config/bayer/config/registroEntradaBayer.js.map +1 -0
  52. package/dist/base/configs/endpoints.config/bayer/config/royaltiesBayer.js +8 -0
  53. package/dist/base/configs/endpoints.config/bayer/config/royaltiesBayer.js.map +1 -0
  54. package/dist/base/configs/navigation.config/modules.submenu/bayer/pendencia/submenu.pendencia.js +16 -0
  55. package/dist/base/configs/navigation.config/modules.submenu/bayer/pendencia/submenu.pendencia.js.map +1 -0
  56. package/dist/base/configs/navigation.config/submenu/bayer/bayer.submenu.js +3 -1
  57. package/dist/base/configs/navigation.config/submenu/bayer/bayer.submenu.js.map +1 -1
  58. package/dist/base/index.js +20 -0
  59. package/dist/base/index.js.map +1 -1
  60. package/dist/base/services/index.js +21 -0
  61. package/dist/base/services/index.js.map +1 -1
  62. package/dist/base/services/modules/bayer/entregaBayerService.js +61 -1
  63. package/dist/base/services/modules/bayer/entregaBayerService.js.map +1 -1
  64. package/dist/base/services/modules/bayer/index.js +23 -0
  65. package/dist/base/services/modules/bayer/index.js.map +1 -0
  66. package/dist/base/services/modules/bayer/pendenciaBayerService.js +34 -0
  67. package/dist/base/services/modules/bayer/pendenciaBayerService.js.map +1 -0
  68. package/dist/base/services/modules/bayer/registroEntradaBayerService.js +13 -0
  69. package/dist/base/services/modules/bayer/registroEntradaBayerService.js.map +1 -0
  70. package/dist/base/services/modules/bayer/royaltiesBayerService.js +21 -0
  71. package/dist/base/services/modules/bayer/royaltiesBayerService.js.map +1 -0
  72. package/lib/base/@types/api/response/bayer/TCreateRoyaltiesBusinessPartnerRequest.ts +3 -0
  73. package/lib/base/@types/api/response/bayer/TFindAllPendenciaResponse.ts +9 -0
  74. package/lib/base/@types/api/response/bayer/TRoyaltiesBusinessPartnerResponse.ts +3 -0
  75. package/lib/base/@types/api/response/bayer/types.ts +81 -0
  76. package/lib/base/configs/endpoints.config/bayer/bayer.ts +7 -1
  77. package/lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts +8 -2
  78. package/lib/base/configs/endpoints.config/bayer/config/pendenciaBayer.ts +8 -0
  79. package/lib/base/configs/endpoints.config/bayer/config/registroEntradaBayer.ts +5 -0
  80. package/lib/base/configs/endpoints.config/bayer/config/royaltiesBayer.ts +6 -0
  81. package/lib/base/configs/navigation.config/modules.submenu/bayer/pendencia/submenu.pendencia.ts +16 -0
  82. package/lib/base/configs/navigation.config/submenu/bayer/bayer.submenu.ts +3 -1
  83. package/lib/base/services/index.ts +2 -0
  84. package/lib/base/services/modules/bayer/entregaBayerService.ts +70 -1
  85. package/lib/base/services/modules/bayer/index.ts +4 -0
  86. package/lib/base/services/modules/bayer/pendenciaBayerService.ts +34 -0
  87. package/lib/base/services/modules/bayer/registroEntradaBayerService.ts +11 -0
  88. package/lib/base/services/modules/bayer/royaltiesBayerService.ts +20 -0
  89. package/package.json +1 -1
@@ -10,6 +10,7 @@ import "./modules/sap/index.js";
10
10
  import "./modules/originacao/index.js";
11
11
  import "./modules/transportadora/index.js";
12
12
  import "./modules/insumos/index.js";
13
+ import "./modules/bayer/index.js";
13
14
  import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
14
15
  import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./modules/commodities/pedidoVenda/PedidoVendaService.js";
15
16
  import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./modules/dm/businessPartner/BusinessPartnerService.js";
@@ -97,6 +98,10 @@ import { apiAddRota, apiFindAllRota, apiFindRotas, apiGetRota, apiUpdateRota, ap
97
98
  import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./modules/transportadora/TiposCarga/TipoCargaService.js";
98
99
  import { apiFindAllveiculo } from "./modules/transportadora/Veiculo/VeiculoService.js";
99
100
  import { apiAddInsumosEstoque, apiDeleteInsumosEstoque, apiFindMonitorInsumosEstoque, apiGetInsumosEstoque, apiUpdateInsumosEstoque } from "./modules/insumos/estoque/EstoqueService.js";
101
+ import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
102
+ import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./modules/bayer/pendenciaBayerService.js";
103
+ import { apiBuscarEntradaGraos } from "./modules/bayer/registroEntradaBayerService.js";
104
+ import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./modules/bayer/royaltiesBayerService.js";
100
105
  export {
101
106
  apiAddAssistenciaTecnicaSeloSocial,
102
107
  apiAddCartaoPortadorFrete,
@@ -138,9 +143,17 @@ export {
138
143
  apiAddTermoFunrural,
139
144
  apiAddTipoCarga,
140
145
  apiAddVolumeProducaoSeloSocial,
146
+ apiAplicarRetencao,
141
147
  apiAprovarRacaoPedidoVenda,
142
148
  apiAprovarTermoFundeinfra,
143
149
  apiAprovarTermoFunrural,
150
+ apiBuscarEntradaGraos,
151
+ apiBuscarPendencias,
152
+ apiBuscarPendenciasBayer,
153
+ apiBuscarRetornoEntregas,
154
+ apiBuscarStatusConsumo,
155
+ apiBuscarStatusFixacao,
156
+ apiCalcularRetencao,
144
157
  apiCancelPreContrato,
145
158
  apiCancelarRacaoPedidoVenda,
146
159
  apiCancelarTermoFundeinfra,
@@ -154,12 +167,14 @@ export {
154
167
  apiCreateContratoCompraGraos,
155
168
  apiCreateCorretora,
156
169
  apiCreateEmpresa,
170
+ apiCreateEntrega,
157
171
  apiCreateLocalRecepcao,
158
172
  apiCreateOpcao,
159
173
  apiCreatePreContrato,
160
174
  apiCreatePrecoDia,
161
175
  apiCreateProdutoCommodity,
162
176
  apiCreateRequisicaoCompra,
177
+ apiCreateRoyaltiesBusinessPartner,
163
178
  apiDeleteCommoditiesContratoBiodiesel,
164
179
  apiDeleteCommoditiesPedidoVenda,
165
180
  apiDeleteInsumosEstoque,
@@ -183,6 +198,8 @@ export {
183
198
  apiDownloadCertificadoTransportadora,
184
199
  apiEditContratoCompraGraos,
185
200
  apiEditPreContrato,
201
+ apiEnviarEntregaBayer,
202
+ apiEnviarEntregaBayerLote,
186
203
  apiExecuteAcao,
187
204
  apiExecuteAcaoCotacao,
188
205
  apiExecuteAcaoOrdemCompra,
@@ -201,6 +218,7 @@ export {
201
218
  apiFindAllCorretora,
202
219
  apiFindAllDocketEstados,
203
220
  apiFindAllEmpresa,
221
+ apiFindAllEntregaBayer,
204
222
  apiFindAllFavorecido,
205
223
  apiFindAllInss,
206
224
  apiFindAllIrpf,
@@ -289,6 +307,7 @@ export {
289
307
  apiFindDmVendedoresAKARepresentantesVendas,
290
308
  apiFindDocketCidadesByEstadoId,
291
309
  apiFindEmpresasIdsByCnpj,
310
+ apiFindEntrega,
292
311
  apiFindFavorecidoByTipoBusca,
293
312
  apiFindFornecedorNfeByCnpj,
294
313
  apiFindHistoricoAcaoByIdEntidade,
@@ -403,6 +422,7 @@ export {
403
422
  apiGetRacaoVinculoMaterialCentro,
404
423
  apiGetRoles,
405
424
  apiGetRota,
425
+ apiGetRoyaltiesBusinessPartner,
406
426
  apiGetSeloSocial,
407
427
  apiGetSeloSocialHistoricos,
408
428
  apiGetTarefasAgendadas,
@@ -424,6 +444,7 @@ export {
424
444
  apiReprovarTermoFunrural,
425
445
  apiRoteirizar,
426
446
  apiSendMail,
447
+ apiSomatorioEntrega,
427
448
  apiUpdateAssistenciaTecnicaSeloSocial,
428
449
  apiUpdateCadastroEstrategiaLiberacaoValor,
429
450
  apiUpdateCertificadoTransportadora,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,67 @@ async function apiFindAllEntregaBayer(params) {
7
7
  method: "get"
8
8
  });
9
9
  }
10
+ async function apiCreateEntrega(saldoId) {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),
13
+ method: "post"
14
+ });
15
+ }
16
+ async function apiEnviarEntregaBayer(id) {
17
+ return ApiService.fetchDataWithAxios({
18
+ url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),
19
+ method: "post"
20
+ });
21
+ }
22
+ async function apiSomatorioEntrega(data) {
23
+ return ApiService.fetchDataWithAxios({
24
+ url: ENTREGA_BAYER_ENDPOINT.somatorio(),
25
+ method: "post",
26
+ data
27
+ });
28
+ }
29
+ async function apiFindEntrega(data) {
30
+ return ApiService.fetchDataWithAxios({
31
+ url: ENTREGA_BAYER_ENDPOINT.find(),
32
+ method: "post",
33
+ data
34
+ });
35
+ }
36
+ async function apiEnviarEntregaBayerLote() {
37
+ return ApiService.fetchDataWithAxios({
38
+ url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),
39
+ method: "post"
40
+ });
41
+ }
42
+ async function apiCalcularRetencao(data) {
43
+ return ApiService.fetchDataWithAxios({
44
+ url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),
45
+ method: "post",
46
+ data
47
+ });
48
+ }
49
+ async function apiBuscarRetornoEntregas() {
50
+ return ApiService.fetchDataWithAxios({
51
+ url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),
52
+ method: "post"
53
+ });
54
+ }
55
+ async function apiAplicarRetencao(data) {
56
+ return ApiService.fetchDataWithAxios({
57
+ url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),
58
+ method: "post",
59
+ data
60
+ });
61
+ }
10
62
  export {
11
- apiFindAllEntregaBayer
63
+ apiAplicarRetencao,
64
+ apiBuscarRetornoEntregas,
65
+ apiCalcularRetencao,
66
+ apiCreateEntrega,
67
+ apiEnviarEntregaBayer,
68
+ apiEnviarEntregaBayerLote,
69
+ apiFindAllEntregaBayer,
70
+ apiFindEntrega,
71
+ apiSomatorioEntrega
12
72
  };
13
73
  //# 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\";\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}"],"names":[],"mappings":";;AAKA,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;"}
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} 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"],"names":[],"mappings":";;AAcA,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,UAAU;AAAA,IACtC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,eAAe,MAAgC;AACjE,SAAO,WAAW,mBAAoE;AAAA,IAClF,KAAK,uBAAuB,KAAK;AAAA,IACjC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,4BAA4B;AAC9C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,MAAsD;AAC5F,SAAO,WAAW,mBAAyG;AAAA,IACvH,KAAK,uBAAuB,iBAAiB;AAAA,IAC7C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,cAAc;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,mBAAmB,MAAsD;AAC3F,SAAO,WAAW,mBAA4F;AAAA,IAC1G,KAAK,uBAAuB,gBAAgB;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
@@ -0,0 +1,23 @@
1
+ import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
2
+ import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./pendenciaBayerService.js";
3
+ import { apiBuscarEntradaGraos } from "./registroEntradaBayerService.js";
4
+ import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./royaltiesBayerService.js";
5
+ export {
6
+ apiAplicarRetencao,
7
+ apiBuscarEntradaGraos,
8
+ apiBuscarPendencias,
9
+ apiBuscarPendenciasBayer,
10
+ apiBuscarRetornoEntregas,
11
+ apiBuscarStatusConsumo,
12
+ apiBuscarStatusFixacao,
13
+ apiCalcularRetencao,
14
+ apiCreateEntrega,
15
+ apiCreateRoyaltiesBusinessPartner,
16
+ apiEnviarEntregaBayer,
17
+ apiEnviarEntregaBayerLote,
18
+ apiFindAllEntregaBayer,
19
+ apiFindEntrega,
20
+ apiGetRoyaltiesBusinessPartner,
21
+ apiSomatorioEntrega
22
+ };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,34 @@
1
+ import ApiService from "../../../../@ecme/services/ApiService.js";
2
+ import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const PENDENCIA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.pendenciaBayer;
4
+ async function apiBuscarStatusFixacao() {
5
+ return ApiService.fetchDataWithAxios({
6
+ url: PENDENCIA_BAYER_ENDPOINT.buscarStatusFixacao(),
7
+ method: "post"
8
+ });
9
+ }
10
+ async function apiBuscarStatusConsumo() {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: PENDENCIA_BAYER_ENDPOINT.buscarStatusConsumo(),
13
+ method: "post"
14
+ });
15
+ }
16
+ async function apiBuscarPendenciasBayer() {
17
+ return ApiService.fetchDataWithAxios({
18
+ url: PENDENCIA_BAYER_ENDPOINT.buscarPendenciasBayer(),
19
+ method: "post"
20
+ });
21
+ }
22
+ async function apiBuscarPendencias(params) {
23
+ return ApiService.fetchDataWithAxios({
24
+ url: PENDENCIA_BAYER_ENDPOINT.buscar(params),
25
+ method: "get"
26
+ });
27
+ }
28
+ export {
29
+ apiBuscarPendencias,
30
+ apiBuscarPendenciasBayer,
31
+ apiBuscarStatusConsumo,
32
+ apiBuscarStatusFixacao
33
+ };
34
+ //# sourceMappingURL=pendenciaBayerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pendenciaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/pendenciaBayerService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService';\nimport { TQueryResponse } from '@base/@types/api';\nimport { TFindAllPendenciaResponse } from '@base/@types/api/response/bayer/TFindAllPendenciaResponse';\nimport endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';\n\nconst PENDENCIA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.pendenciaBayer;\n\nexport async function apiBuscarStatusFixacao() {\n return ApiService.fetchDataWithAxios<void>({\n url: PENDENCIA_BAYER_ENDPOINT.buscarStatusFixacao(),\n method: 'post',\n });\n}\n\nexport async function apiBuscarStatusConsumo() {\n return ApiService.fetchDataWithAxios<void>({\n url: PENDENCIA_BAYER_ENDPOINT.buscarStatusConsumo(),\n method: 'post',\n });\n}\n\nexport async function apiBuscarPendenciasBayer() {\n return ApiService.fetchDataWithAxios<void>({\n url: PENDENCIA_BAYER_ENDPOINT.buscarPendenciasBayer(),\n method: 'post',\n });\n}\n\nexport async function apiBuscarPendencias(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllPendenciaResponse>>({\n url: PENDENCIA_BAYER_ENDPOINT.buscar(params),\n method: 'get',\n });\n}\n"],"names":[],"mappings":";;AAKA,MAAM,2BAA2B,yBAAyB,MAAM;AAEhE,eAAsB,yBAAyB;AAC3C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,yBAAyB,oBAAoB;AAAA,IAClD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,yBAAyB;AAC3C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,yBAAyB,oBAAoB;AAAA,IAClD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,2BAA2B;AAC7C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,yBAAyB,sBAAsB;AAAA,IACpD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oBAAoB,QAAiB;AACvD,SAAO,WAAW,mBAA8D;AAAA,IAC5E,KAAK,yBAAyB,OAAO,MAAM;AAAA,IAC3C,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -0,0 +1,13 @@
1
+ import ApiService from "../../../../@ecme/services/ApiService.js";
2
+ import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const REGISTRO_ENTRADA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.registroEntradaBayer;
4
+ async function apiBuscarEntradaGraos() {
5
+ return ApiService.fetchDataWithAxios({
6
+ url: REGISTRO_ENTRADA_BAYER_ENDPOINT.buscar(),
7
+ method: "post"
8
+ });
9
+ }
10
+ export {
11
+ apiBuscarEntradaGraos
12
+ };
13
+ //# sourceMappingURL=registroEntradaBayerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registroEntradaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/registroEntradaBayerService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService';\nimport endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';\n\nconst REGISTRO_ENTRADA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.registroEntradaBayer;\n\nexport async function apiBuscarEntradaGraos() {\n return ApiService.fetchDataWithAxios<void>({\n url: REGISTRO_ENTRADA_BAYER_ENDPOINT.buscar(),\n method: 'post',\n });\n}\n"],"names":[],"mappings":";;AAGA,MAAM,kCAAkC,yBAAyB,MAAM;AAEvE,eAAsB,wBAAwB;AAC1C,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,gCAAgC,OAAO;AAAA,IAC5C,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -0,0 +1,21 @@
1
+ import ApiService from "../../../../@ecme/services/ApiService.js";
2
+ import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const ROYALTIES_BAYER_ENDPOINT = endpointNavigationConfig.bayer.royaltiesBayer;
4
+ async function apiGetRoyaltiesBusinessPartner() {
5
+ return ApiService.fetchDataWithAxios({
6
+ url: ROYALTIES_BAYER_ENDPOINT.get(),
7
+ method: "get"
8
+ });
9
+ }
10
+ async function apiCreateRoyaltiesBusinessPartner(data) {
11
+ return ApiService.fetchDataWithAxios({
12
+ url: ROYALTIES_BAYER_ENDPOINT.create(),
13
+ method: "post",
14
+ data
15
+ });
16
+ }
17
+ export {
18
+ apiCreateRoyaltiesBusinessPartner,
19
+ apiGetRoyaltiesBusinessPartner
20
+ };
21
+ //# sourceMappingURL=royaltiesBayerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"royaltiesBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/royaltiesBayerService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService';\nimport endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';\nimport { RoyaltiesBusinessPartnerResponse, CreateRoyaltiesBusinessPartnerRequest } from '@base/@types/api/response/bayer/types';\n\nconst ROYALTIES_BAYER_ENDPOINT = endpointNavigationConfig.bayer.royaltiesBayer;\n\nexport async function apiGetRoyaltiesBusinessPartner() {\n return ApiService.fetchDataWithAxios<RoyaltiesBusinessPartnerResponse>({\n url: ROYALTIES_BAYER_ENDPOINT.get(),\n method: 'get',\n });\n}\n\nexport async function apiCreateRoyaltiesBusinessPartner(data: CreateRoyaltiesBusinessPartnerRequest) {\n return ApiService.fetchDataWithAxios<void, CreateRoyaltiesBusinessPartnerRequest>({\n url: ROYALTIES_BAYER_ENDPOINT.create(),\n method: 'post',\n data,\n });\n}\n"],"names":[],"mappings":";;AAIA,MAAM,2BAA2B,yBAAyB,MAAM;AAEhE,eAAsB,iCAAiC;AACnD,SAAO,WAAW,mBAAqD;AAAA,IACnE,KAAK,yBAAyB,IAAI;AAAA,IAClC,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,kCAAkC,MAA6C;AACjG,SAAO,WAAW,mBAAgE;AAAA,IAC9E,KAAK,yBAAyB,OAAO;AAAA,IACrC,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
@@ -0,0 +1,3 @@
1
+ export interface CreateRoyaltiesBusinessPartnerRequest {
2
+ codigoBusinessPartner: string;
3
+ }
@@ -0,0 +1,9 @@
1
+ export interface TFindAllPendenciaResponse {
2
+ id: number;
3
+ cnpjMatriz: string;
4
+ cnpjFilial: string;
5
+ documentoProdutor: string;
6
+ quantidadePendente: number;
7
+ quantidadeDisponivel: number;
8
+ dataCriacao: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface RoyaltiesBusinessPartnerResponse {
2
+ codigoBusinessPartner: string;
3
+ }
@@ -0,0 +1,81 @@
1
+ import { TRetornoEntregaResponse } from "./TRetornoEntregaResponse";
2
+
3
+ export interface RoyaltiesBusinessPartnerResponse {
4
+ codigoBusinessPartner: string;
5
+ }
6
+
7
+ export interface CreateRoyaltiesBusinessPartnerRequest {
8
+ codigoBusinessPartner: string;
9
+ }
10
+
11
+ export interface EntregaResponse {
12
+ id: number;
13
+ }
14
+
15
+ export interface FindEntregaFilterRequest {
16
+ saldoEntradaGraosIdList: number[];
17
+ }
18
+
19
+ export interface SomatorioEntregaPorGrupoResponse {
20
+ grupo: string;
21
+ totalQuantidadeEntregue: number;
22
+ totalQuantidadeBaixada: number;
23
+ totalQuantidadePendente: number;
24
+ totalQuantidadeRetida: number;
25
+ totalQuantidadeBaixadaConsumida: number;
26
+ }
27
+
28
+ export interface SomatorioEntregaResponse {
29
+ somatorios: SomatorioEntregaPorGrupoResponse[];
30
+ }
31
+
32
+ export interface FindEntregaResponse {
33
+ id: number;
34
+ saldoEntradaGraosId: number;
35
+ ticketId: number;
36
+ codigoCentro: string;
37
+ codigoDeposito: string;
38
+ produtoId: number;
39
+ safraId: number;
40
+ produtorId: number;
41
+ transgenia: 'INTACTA' | 'NAO_INTACTA' | 'INTACTA_NAO_DECLARADA' | 'ORIUNDO_PARTICIPANTE' | 'INTACTA_ORIUNDO_PARTICIPANTE' | 'SEM_TRANSGENIA';
42
+ quantidadeEntregue: number;
43
+ quantidadeBaixada: number;
44
+ quantidadePendente: number;
45
+ quantidadeRetida: number;
46
+ quantidadeBaixadaConsumida: number;
47
+ dataEntrega: string;
48
+ status: 'POSITIVE' | 'NEGATIVE' | 'DECLARED' | 'ORIUNDO';
49
+ retornoEntrega: TRetornoEntregaResponse;
50
+ }
51
+
52
+ export interface ItemQuantidadeConsumidaPorSaldoEntradaGraosRequest {
53
+ saldoEntradaGraosId: number;
54
+ quantidadeConsumida: number;
55
+ }
56
+
57
+ export interface QuantidadeConsumidaPorSaldoEntradaGraosRequest {
58
+ itens: ItemQuantidadeConsumidaPorSaldoEntradaGraosRequest[];
59
+ }
60
+
61
+ export interface ItemQuantidadeASerRetidaPorSaldoResponse {
62
+ entregaId: number;
63
+ saldoEntradaGraosId: number;
64
+ quantidadeASerRetida: number;
65
+ }
66
+
67
+ export interface QuantidadeASerRetidaPorSaldoResponse {
68
+ businessPartnerRoyalties: string;
69
+ itens: ItemQuantidadeASerRetidaPorSaldoResponse[];
70
+ }
71
+
72
+ export interface ItemAplicarRetencaoResponse {
73
+ entregaId: number;
74
+ saldoEntradaGraosId: number;
75
+ quantidadeRetida: number;
76
+ fixacaoId: string;
77
+ }
78
+
79
+ export interface AplicarRetencaoResponse {
80
+ itens: ItemAplicarRetencaoResponse[];
81
+ }
@@ -1,7 +1,13 @@
1
1
  import entregaBayer from "./config/entregaBayer";
2
+ import royaltiesBayer from "./config/royaltiesBayer";
3
+ import registroEntradaBayer from "./config/registroEntradaBayer";
4
+ import pendenciaBayer from "./config/pendenciaBayer";
2
5
 
3
6
  const bayer = {
4
- entregaBayer
7
+ entregaBayer,
8
+ royaltiesBayer,
9
+ registroEntradaBayer,
10
+ pendenciaBayer,
5
11
  }
6
12
 
7
13
  export default bayer;
@@ -1,7 +1,13 @@
1
1
  const entregaBayer = {
2
2
  findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,
3
- createEntrega: (saldoId: number) => `/bayer/api/entregas${saldoId}`,
4
- enviarBayer: (id: number) => `/bayer/api/entregas${id}/enviar-bayer`,
3
+ createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,
4
+ enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,
5
+ somatorio: () => '/bayer/api/entregas/somatorio',
6
+ find: () => '/bayer/api/entregas/find',
7
+ enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',
8
+ calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',
9
+ buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',
10
+ aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',
5
11
  }
6
12
 
7
13
  export default entregaBayer
@@ -0,0 +1,8 @@
1
+ const pendenciaBayer = {
2
+ buscarStatusFixacao: () => '/bayer/api/pendencias/buscar-status-fixacao',
3
+ buscarStatusConsumo: () => '/bayer/api/pendencias/buscar-status-consumo',
4
+ buscarPendenciasBayer: () => '/bayer/api/pendencias/buscar-bayer',
5
+ buscar: (params?: string) => `/bayer/api/pendencias${params ? `?${params}` : ''}`,
6
+ }
7
+
8
+ export default pendenciaBayer
@@ -0,0 +1,5 @@
1
+ const registroEntradaBayer = {
2
+ buscar: () => '/bayer/api/registro-entrada/buscar',
3
+ }
4
+
5
+ export default registroEntradaBayer
@@ -0,0 +1,6 @@
1
+ const royaltiesBayer = {
2
+ get: () => '/bayer/api/royalties-business-partner',
3
+ create: () => '/bayer/api/royalties-business-partner',
4
+ }
5
+
6
+ export default royaltiesBayer
@@ -0,0 +1,16 @@
1
+ import { ADMIN } from '@/constants/roles.constant'
2
+ import { NavigationTree } from '@/@types/navigation'
3
+ import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'
4
+
5
+ const subMenuPendencia: NavigationTree = {
6
+ key: 'modules.bayer.pendencia',
7
+ path: '/bayer/pendencia-bayer',
8
+ title: 'Pendência',
9
+ translateKey: 'nav.modules.bayer.pendencia.title',
10
+ icon: 'form',
11
+ type: NAV_ITEM_TYPE_ITEM,
12
+ authority: [ADMIN],
13
+ subMenu: [],
14
+ }
15
+
16
+ export default subMenuPendencia
@@ -1,8 +1,10 @@
1
1
  import type { NavigationTree } from '@/@types/navigation'
2
2
  import subMenuEntrega from '../../modules.submenu/bayer/entrega/submenu.entrega';
3
+ import subMenuPendencia from '../../modules.submenu/bayer/pendencia/submenu.pendencia';
3
4
 
4
5
  const bayerSubmenu: NavigationTree[] = [
5
- subMenuEntrega
6
+ subMenuEntrega,
7
+ subMenuPendencia
6
8
  ]
7
9
 
8
10
  export default bayerSubmenu;
@@ -25,3 +25,5 @@ export * from './modules/sap';
25
25
  export * from './modules/originacao';
26
26
  export * from './modules/transportadora';
27
27
  export * from './modules/insumos';
28
+ export * from './modules/bayer';
29
+
@@ -2,6 +2,15 @@ import ApiService from "@/services/ApiService";
2
2
  import { TQueryResponse } from "@base/@types/api";
3
3
  import { TFindAllEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllEntregaBayerResponse";
4
4
  import endpointNavigationConfig from "@base/configs/endpoints.config/endpoints.navigation";
5
+ import {
6
+ EntregaResponse,
7
+ FindEntregaFilterRequest,
8
+ SomatorioEntregaResponse,
9
+ FindEntregaResponse,
10
+ QuantidadeConsumidaPorSaldoEntradaGraosRequest,
11
+ QuantidadeASerRetidaPorSaldoResponse,
12
+ AplicarRetencaoResponse
13
+ } from "@base/@types/api/response/bayer/types";
5
14
 
6
15
  const ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;
7
16
 
@@ -10,4 +19,64 @@ export async function apiFindAllEntregaBayer(params?: string) {
10
19
  url: ENTREGA_BAYER_ENDPOINT.findAll(params),
11
20
  method: "get",
12
21
  });
13
- }
22
+ }
23
+
24
+ export async function apiCreateEntrega(saldoId: number) {
25
+ return ApiService.fetchDataWithAxios<EntregaResponse>({
26
+ url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),
27
+ method: 'post',
28
+ });
29
+ }
30
+
31
+ export async function apiEnviarEntregaBayer(id: number) {
32
+ return ApiService.fetchDataWithAxios<void>({
33
+ url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),
34
+ method: 'post',
35
+ });
36
+ }
37
+
38
+ export async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {
39
+ return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({
40
+ url: ENTREGA_BAYER_ENDPOINT.somatorio(),
41
+ method: 'post',
42
+ data,
43
+ });
44
+ }
45
+
46
+ export async function apiFindEntrega(data: FindEntregaFilterRequest) {
47
+ return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({
48
+ url: ENTREGA_BAYER_ENDPOINT.find(),
49
+ method: 'post',
50
+ data,
51
+ });
52
+ }
53
+
54
+ export async function apiEnviarEntregaBayerLote() {
55
+ return ApiService.fetchDataWithAxios<void>({
56
+ url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),
57
+ method: 'post',
58
+ });
59
+ }
60
+
61
+ export async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {
62
+ return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({
63
+ url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),
64
+ method: 'post',
65
+ data,
66
+ });
67
+ }
68
+
69
+ export async function apiBuscarRetornoEntregas() {
70
+ return ApiService.fetchDataWithAxios<void>({
71
+ url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),
72
+ method: 'post',
73
+ });
74
+ }
75
+
76
+ export async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {
77
+ return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({
78
+ url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),
79
+ method: 'post',
80
+ data,
81
+ });
82
+ }
@@ -0,0 +1,4 @@
1
+ export * from './entregaBayerService';
2
+ export * from './pendenciaBayerService';
3
+ export * from './registroEntradaBayerService';
4
+ export * from './royaltiesBayerService';
@@ -0,0 +1,34 @@
1
+ import ApiService from '@/services/ApiService';
2
+ import { TQueryResponse } from '@base/@types/api';
3
+ import { TFindAllPendenciaResponse } from '@base/@types/api/response/bayer/TFindAllPendenciaResponse';
4
+ import endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';
5
+
6
+ const PENDENCIA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.pendenciaBayer;
7
+
8
+ export async function apiBuscarStatusFixacao() {
9
+ return ApiService.fetchDataWithAxios<void>({
10
+ url: PENDENCIA_BAYER_ENDPOINT.buscarStatusFixacao(),
11
+ method: 'post',
12
+ });
13
+ }
14
+
15
+ export async function apiBuscarStatusConsumo() {
16
+ return ApiService.fetchDataWithAxios<void>({
17
+ url: PENDENCIA_BAYER_ENDPOINT.buscarStatusConsumo(),
18
+ method: 'post',
19
+ });
20
+ }
21
+
22
+ export async function apiBuscarPendenciasBayer() {
23
+ return ApiService.fetchDataWithAxios<void>({
24
+ url: PENDENCIA_BAYER_ENDPOINT.buscarPendenciasBayer(),
25
+ method: 'post',
26
+ });
27
+ }
28
+
29
+ export async function apiBuscarPendencias(params?: string) {
30
+ return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllPendenciaResponse>>({
31
+ url: PENDENCIA_BAYER_ENDPOINT.buscar(params),
32
+ method: 'get',
33
+ });
34
+ }
@@ -0,0 +1,11 @@
1
+ import ApiService from '@/services/ApiService';
2
+ import endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';
3
+
4
+ const REGISTRO_ENTRADA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.registroEntradaBayer;
5
+
6
+ export async function apiBuscarEntradaGraos() {
7
+ return ApiService.fetchDataWithAxios<void>({
8
+ url: REGISTRO_ENTRADA_BAYER_ENDPOINT.buscar(),
9
+ method: 'post',
10
+ });
11
+ }
@@ -0,0 +1,20 @@
1
+ import ApiService from '@/services/ApiService';
2
+ import endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation';
3
+ import { RoyaltiesBusinessPartnerResponse, CreateRoyaltiesBusinessPartnerRequest } from '@base/@types/api/response/bayer/types';
4
+
5
+ const ROYALTIES_BAYER_ENDPOINT = endpointNavigationConfig.bayer.royaltiesBayer;
6
+
7
+ export async function apiGetRoyaltiesBusinessPartner() {
8
+ return ApiService.fetchDataWithAxios<RoyaltiesBusinessPartnerResponse>({
9
+ url: ROYALTIES_BAYER_ENDPOINT.get(),
10
+ method: 'get',
11
+ });
12
+ }
13
+
14
+ export async function apiCreateRoyaltiesBusinessPartner(data: CreateRoyaltiesBusinessPartnerRequest) {
15
+ return ApiService.fetchDataWithAxios<void, CreateRoyaltiesBusinessPartnerRequest>({
16
+ url: ROYALTIES_BAYER_ENDPOINT.create(),
17
+ method: 'post',
18
+ data,
19
+ });
20
+ }