@orbe-agro/client-core 5.3.191 → 5.3.193

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 (38) hide show
  1. package/dist/@types/base/@types/api/request/originacao/TSimularRoyaltiesRequest.d.ts +7 -0
  2. package/dist/@types/base/@types/api/request/originacao/TSimularRoyaltiesRequest.d.ts.map +1 -0
  3. package/dist/@types/base/@types/api/response/originacao/TFindAllLiquidacaoResponse.d.ts +2 -0
  4. package/dist/@types/base/@types/api/response/originacao/TFindAllLiquidacaoResponse.d.ts.map +1 -1
  5. package/dist/@types/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.d.ts +9 -0
  6. package/dist/@types/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.d.ts.map +1 -0
  7. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.d.ts +8 -0
  8. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.d.ts.map +1 -0
  9. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.d.ts +5 -0
  10. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.d.ts.map +1 -0
  11. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -0
  12. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  13. package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts +1 -0
  14. package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts.map +1 -1
  15. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +1 -0
  16. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
  17. package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts +3 -0
  18. package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts.map +1 -1
  19. package/dist/base/@types/api/request/originacao/TSimularRoyaltiesRequest.js +2 -0
  20. package/dist/base/@types/api/request/originacao/TSimularRoyaltiesRequest.js.map +1 -0
  21. package/dist/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.js +2 -0
  22. package/dist/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.js.map +1 -0
  23. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.js +2 -0
  24. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.js.map +1 -0
  25. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.js +2 -0
  26. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.js.map +1 -0
  27. package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js +2 -1
  28. package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js.map +1 -1
  29. package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js +20 -12
  30. package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js.map +1 -1
  31. package/lib/base/@types/api/request/originacao/TSimularRoyaltiesRequest.ts +6 -0
  32. package/lib/base/@types/api/response/originacao/TFindAllLiquidacaoResponse.ts +2 -0
  33. package/lib/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.ts +8 -0
  34. package/lib/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.ts +7 -0
  35. package/lib/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.ts +5 -0
  36. package/lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts +1 -0
  37. package/lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts +10 -0
  38. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ export type TSimularRoyaltiesRequest = {
2
+ centroId: number;
3
+ volumeLiquidado: number;
4
+ tipoSaldo: string;
5
+ operacao?: string;
6
+ };
7
+ //# sourceMappingURL=TSimularRoyaltiesRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSimularRoyaltiesRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/originacao/TSimularRoyaltiesRequest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA"}
@@ -4,6 +4,7 @@ import { TDefaultProdutoResponse } from "./TDefaultProdutoResponse";
4
4
  import { TImpostoCalculadoResponse } from "./TImpostoCalculadoResponse";
5
5
  import { TItemLiquidacaoResponse } from "./TItemLiquidacaoResponse";
6
6
  import { TRetornoLiquidacaoResponse } from "./TRetornoLiquidacaoResponse";
7
+ import { TRoyaltyCalculadoResponse } from "./TRoyaltyCalculadoResponse";
7
8
  export type TFindAllLiquidacaoResponse = {
8
9
  id: number;
9
10
  operacao: string;
@@ -21,6 +22,7 @@ export type TFindAllLiquidacaoResponse = {
21
22
  valorBrutoPagamento: number;
22
23
  valorLiquidoPagamento: number;
23
24
  impostos: TImpostoCalculadoResponse[];
25
+ royaltiesCalculados: TRoyaltyCalculadoResponse[];
24
26
  user: string;
25
27
  dataRegistro: string;
26
28
  retornoLiquidacao: TRetornoLiquidacaoResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"TFindAllLiquidacaoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindAllLiquidacaoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,MAAM,0BAA0B,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,+BAA+B,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,yBAAyB,EAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,0BAA0B,CAAA;IAC7C,KAAK,EAAE,uBAAuB,EAAE,CAAC;CACpC,CAAA"}
1
+ {"version":3,"file":"TFindAllLiquidacaoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindAllLiquidacaoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,MAAM,0BAA0B,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,+BAA+B,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,yBAAyB,EAAE,CAAC;IACtC,mBAAmB,EAAE,yBAAyB,EAAE,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,0BAA0B,CAAA;IAC7C,KAAK,EAAE,uBAAuB,EAAE,CAAC;CACpC,CAAA"}
@@ -0,0 +1,9 @@
1
+ export type TRoyaltyCalculadoResponse = {
2
+ id: number;
3
+ entregaId: number;
4
+ saldoEntradaGraosId: number;
5
+ quantidadeRetida: number;
6
+ valorRoyalty: number;
7
+ liquidacaoId: number;
8
+ };
9
+ //# sourceMappingURL=TRoyaltyCalculadoResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TRoyaltyCalculadoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TRoyaltyCalculadoResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type TSomatorioEntregaBayerPorGrupoResponse = {
2
+ grupo: string;
3
+ totalQuantidadeEntregue: number;
4
+ totalQuantidadeBaixado: number;
5
+ totalQuantidadeCobrado: number;
6
+ totalValorCobrado: number;
7
+ };
8
+ //# sourceMappingURL=TSomatorioEntregaBayerPorGrupoResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSomatorioEntregaBayerPorGrupoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sCAAsC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { TSomatorioEntregaBayerPorGrupoResponse } from "./TSomatorioEntregaBayerPorGrupoResponse";
2
+ export type TSomatorioEntregaBayerResponse = {
3
+ somatorios: TSomatorioEntregaBayerPorGrupoResponse[];
4
+ };
5
+ //# sourceMappingURL=TSomatorioEntregaBayerResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSomatorioEntregaBayerResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAElG,MAAM,MAAM,8BAA8B,GAAG;IACzC,UAAU,EAAE,sCAAsC,EAAE,CAAC;CACxD,CAAA"}
@@ -1414,6 +1414,7 @@ declare const endpointNavigationConfig: {
1414
1414
  cockpitCompras: {
1415
1415
  findAll: (params?: string) => string;
1416
1416
  liquidarContrato: (contratoId: string) => string;
1417
+ simularRoyalties: (contratoId: string) => string;
1417
1418
  };
1418
1419
  cockpitFiscal: {
1419
1420
  findAll: (params?: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  declare const cockpitCompras: {
2
2
  findAll: (params?: string) => string;
3
3
  liquidarContrato: (contratoId: string) => string;
4
+ simularRoyalties: (contratoId: string) => string;
4
5
  };
5
6
  export default cockpitCompras;
6
7
  //# sourceMappingURL=cockpitCompras.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cockpitCompras.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc;uBACC,MAAM;mCACM,MAAM;CACtC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"cockpitCompras.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc;uBACC,MAAM;mCACM,MAAM;mCACN,MAAM;CACtC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -212,6 +212,7 @@ declare const originacao: {
212
212
  cockpitCompras: {
213
213
  findAll: (params?: string) => string;
214
214
  liquidarContrato: (contratoId: string) => string;
215
+ simularRoyalties: (contratoId: string) => string;
215
216
  };
216
217
  cockpitFiscal: {
217
218
  findAll: (params?: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AA6BA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bf,CAAA;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"originacao.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/originacao.ts"],"names":[],"mappings":"AA6BA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bf,CAAA;AAED,eAAe,UAAU,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { TQueryResponse } from "@base/@types/api";
2
2
  import { TLiquidarContratoRequest } from "@base/@types/api/request/originacao/TLiquidarContratoRequest";
3
+ import { TSimularRoyaltiesRequest } from "@base/@types/api/request/originacao/TSimularRoyaltiesRequest";
3
4
  import { TFindAllCockpitComprasResponse } from "@base/@types/api/response/originacao/TFindAllCockpitComprasResponse";
5
+ import { TSomatorioEntregaBayerResponse } from "@base/@types/api/response/originacao/TSomatorioEntregaBayerResponse";
4
6
  export declare function apiFindAllCockpitCompras(params?: string): Promise<TQueryResponse<TFindAllCockpitComprasResponse>>;
5
7
  export declare function apiLiquidarContrato(contratoId: string | number, data: TLiquidarContratoRequest): Promise<void>;
8
+ export declare function apiSimularRoyalties(contratoId: string | number, data: TSimularRoyaltiesRequest): Promise<TSomatorioEntregaBayerResponse>;
6
9
  //# sourceMappingURL=cockpitComprasService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cockpitComprasService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qEAAqE,CAAC;AAKrH,wBAAsB,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,2DAK7D;AAED,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,wBAAwB,iBAMpG"}
1
+ {"version":3,"file":"cockpitComprasService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qEAAqE,CAAC;AACrH,OAAO,EAAE,8BAA8B,EAAE,MAAM,qEAAqE,CAAC;AAKrH,wBAAsB,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,2DAK7D;AAED,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,wBAAwB,iBAMpG;AAED,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,wBAAwB,2CAMpG"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TSimularRoyaltiesRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSimularRoyaltiesRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TRoyaltyCalculadoResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TRoyaltyCalculadoResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TSomatorioEntregaBayerPorGrupoResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSomatorioEntregaBayerPorGrupoResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TSomatorioEntregaBayerResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TSomatorioEntregaBayerResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  const i = {
2
2
  findAll: (a) => `/originacao/api/cockpit-compras?${a ?? ""}`,
3
- liquidarContrato: (a) => `/originacao/api/cockpit-compras/liquidar/${a}`
3
+ liquidarContrato: (a) => `/originacao/api/cockpit-compras/liquidar/${a}`,
4
+ simularRoyalties: (a) => `/originacao/api/cockpit-compras/simular-royalties/${a}`
4
5
  };
5
6
  export {
6
7
  i as default
@@ -1 +1 @@
1
- {"version":3,"file":"cockpitCompras.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts"],"sourcesContent":["const cockpitCompras = {\n findAll: (params?: string) => `/originacao/api/cockpit-compras?${params ?? \"\"}`,\n liquidarContrato: (contratoId: string) => `/originacao/api/cockpit-compras/liquidar/${contratoId}`,\n};\n\nexport default cockpitCompras;\n"],"names":["cockpitCompras","params","contratoId"],"mappings":"AAAA,MAAMA,IAAiB;AAAA,EACrB,SAAS,CAACC,MAAoB,mCAAmCA,KAAU,EAAE;AAAA,EAC7E,kBAAkB,CAACC,MAAuB,4CAA4CA,CAAU;AAClG;"}
1
+ {"version":3,"file":"cockpitCompras.js","sources":["../../../../../../lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts"],"sourcesContent":["const cockpitCompras = {\n findAll: (params?: string) => `/originacao/api/cockpit-compras?${params ?? \"\"}`,\n liquidarContrato: (contratoId: string) => `/originacao/api/cockpit-compras/liquidar/${contratoId}`,\n simularRoyalties: (contratoId: string) => `/originacao/api/cockpit-compras/simular-royalties/${contratoId}`,\n};\n\nexport default cockpitCompras;\n"],"names":["cockpitCompras","params","contratoId"],"mappings":"AAAA,MAAMA,IAAiB;AAAA,EACrB,SAAS,CAACC,MAAoB,mCAAmCA,KAAU,EAAE;AAAA,EAC7E,kBAAkB,CAACC,MAAuB,4CAA4CA,CAAU;AAAA,EAChG,kBAAkB,CAACA,MAAuB,qDAAqDA,CAAU;AAC3G;"}
@@ -1,21 +1,29 @@
1
- import t from "../../../../../@ecme/services/ApiService.js";
2
- import n from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
- const o = n.originacao.cockpitCompras;
4
- async function p(i) {
5
- return t.fetchDataWithAxios({
6
- url: o.findAll(i),
1
+ import o from "../../../../../@ecme/services/ApiService.js";
2
+ import r from "../../../../configs/endpoints.config/endpoints.navigation.js";
3
+ const a = r.originacao.cockpitCompras;
4
+ async function c(t) {
5
+ return o.fetchDataWithAxios({
6
+ url: a.findAll(t),
7
7
  method: "get"
8
8
  });
9
9
  }
10
- async function e(i, r) {
11
- return t.fetchDataWithAxios({
12
- url: o.liquidarContrato(String(i)),
10
+ async function p(t, i) {
11
+ return o.fetchDataWithAxios({
12
+ url: a.liquidarContrato(String(t)),
13
13
  method: "post",
14
- data: r
14
+ data: i
15
+ });
16
+ }
17
+ async function s(t, i) {
18
+ return o.fetchDataWithAxios({
19
+ url: a.simularRoyalties(String(t)),
20
+ method: "post",
21
+ data: i
15
22
  });
16
23
  }
17
24
  export {
18
- p as apiFindAllCockpitCompras,
19
- e as apiLiquidarContrato
25
+ c as apiFindAllCockpitCompras,
26
+ p as apiLiquidarContrato,
27
+ s as apiSimularRoyalties
20
28
  };
21
29
  //# sourceMappingURL=cockpitComprasService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cockpitComprasService.js","sources":["../../../../../../lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TLiquidarContratoRequest } from \"@base/@types/api/request/originacao/TLiquidarContratoRequest\";\nimport { TFindAllCockpitComprasResponse } from \"@base/@types/api/response/originacao/TFindAllCockpitComprasResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT = endpointNavigationConfig.originacao.cockpitCompras;\n\nexport async function apiFindAllCockpitCompras(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllCockpitComprasResponse>>({\n url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiLiquidarContrato(contratoId: string | number, data: TLiquidarContratoRequest) {\n return ApiService.fetchDataWithAxios<void>({\n url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.liquidarContrato(String(contratoId)),\n method: \"post\",\n data,\n });\n}"],"names":["COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT","endpointNavigationConfig","apiFindAllCockpitCompras","params","ApiService","apiLiquidarContrato","contratoId","data"],"mappings":";;AAMA,MAAMA,IAAsCC,EAAyB,WAAW;AAEhF,eAAsBC,EAAyBC,GAAiB;AAC9D,SAAOC,EAAW,mBAAmE;AAAA,IACnF,KAAKJ,EAAoC,QAAQG,CAAM;AAAA,IACvD,QAAQ;AAAA,EAAA,CACT;AACH;AAEsB,eAAAE,EAAoBC,GAA6BC,GAAgC;AACrG,SAAOH,EAAW,mBAAyB;AAAA,IACzC,KAAKJ,EAAoC,iBAAiB,OAAOM,CAAU,CAAC;AAAA,IAC5E,QAAQ;AAAA,IACR,MAAAC;AAAA,EAAA,CACD;AACH;"}
1
+ {"version":3,"file":"cockpitComprasService.js","sources":["../../../../../../lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TLiquidarContratoRequest } from \"@base/@types/api/request/originacao/TLiquidarContratoRequest\";\nimport { TSimularRoyaltiesRequest } from \"@base/@types/api/request/originacao/TSimularRoyaltiesRequest\";\nimport { TFindAllCockpitComprasResponse } from \"@base/@types/api/response/originacao/TFindAllCockpitComprasResponse\";\nimport { TSomatorioEntregaBayerResponse } from \"@base/@types/api/response/originacao/TSomatorioEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT = endpointNavigationConfig.originacao.cockpitCompras;\n\nexport async function apiFindAllCockpitCompras(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllCockpitComprasResponse>>({\n url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiLiquidarContrato(contratoId: string | number, data: TLiquidarContratoRequest) {\n return ApiService.fetchDataWithAxios<void>({\n url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.liquidarContrato(String(contratoId)),\n method: \"post\",\n data,\n });\n}\n\nexport async function apiSimularRoyalties(contratoId: string | number, data: TSimularRoyaltiesRequest) {\n return ApiService.fetchDataWithAxios<TSomatorioEntregaBayerResponse>({\n url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.simularRoyalties(String(contratoId)),\n method: \"post\",\n data,\n });\n}"],"names":["COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT","endpointNavigationConfig","apiFindAllCockpitCompras","params","ApiService","apiLiquidarContrato","contratoId","data","apiSimularRoyalties"],"mappings":";;AAQA,MAAMA,IAAsCC,EAAyB,WAAW;AAEhF,eAAsBC,EAAyBC,GAAiB;AAC9D,SAAOC,EAAW,mBAAmE;AAAA,IACnF,KAAKJ,EAAoC,QAAQG,CAAM;AAAA,IACvD,QAAQ;AAAA,EAAA,CACT;AACH;AAEsB,eAAAE,EAAoBC,GAA6BC,GAAgC;AACrG,SAAOH,EAAW,mBAAyB;AAAA,IACzC,KAAKJ,EAAoC,iBAAiB,OAAOM,CAAU,CAAC;AAAA,IAC5E,QAAQ;AAAA,IACR,MAAAC;AAAA,EAAA,CACD;AACH;AAEsB,eAAAC,EAAoBF,GAA6BC,GAAgC;AACrG,SAAOH,EAAW,mBAAmD;AAAA,IACnE,KAAKJ,EAAoC,iBAAiB,OAAOM,CAAU,CAAC;AAAA,IAC5E,QAAQ;AAAA,IACR,MAAAC;AAAA,EAAA,CACD;AACH;"}
@@ -0,0 +1,6 @@
1
+ export type TSimularRoyaltiesRequest = {
2
+ centroId: number;
3
+ volumeLiquidado: number;
4
+ tipoSaldo: string;
5
+ operacao?: string;
6
+ }
@@ -4,6 +4,7 @@ import { TDefaultProdutoResponse } from "./TDefaultProdutoResponse";
4
4
  import { TImpostoCalculadoResponse } from "./TImpostoCalculadoResponse";
5
5
  import { TItemLiquidacaoResponse } from "./TItemLiquidacaoResponse";
6
6
  import { TRetornoLiquidacaoResponse } from "./TRetornoLiquidacaoResponse";
7
+ import { TRoyaltyCalculadoResponse } from "./TRoyaltyCalculadoResponse";
7
8
 
8
9
  export type TFindAllLiquidacaoResponse = {
9
10
  id: number;
@@ -22,6 +23,7 @@ export type TFindAllLiquidacaoResponse = {
22
23
  valorBrutoPagamento: number;
23
24
  valorLiquidoPagamento: number;
24
25
  impostos: TImpostoCalculadoResponse[];
26
+ royaltiesCalculados: TRoyaltyCalculadoResponse[];
25
27
  user: string;
26
28
  dataRegistro: string;
27
29
  retornoLiquidacao: TRetornoLiquidacaoResponse
@@ -0,0 +1,8 @@
1
+ export type TRoyaltyCalculadoResponse = {
2
+ id: number;
3
+ entregaId: number;
4
+ saldoEntradaGraosId: number;
5
+ quantidadeRetida: number;
6
+ valorRoyalty: number;
7
+ liquidacaoId: number;
8
+ }
@@ -0,0 +1,7 @@
1
+ export type TSomatorioEntregaBayerPorGrupoResponse = {
2
+ grupo: string;
3
+ totalQuantidadeEntregue: number;
4
+ totalQuantidadeBaixado: number;
5
+ totalQuantidadeCobrado: number;
6
+ totalValorCobrado: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { TSomatorioEntregaBayerPorGrupoResponse } from "./TSomatorioEntregaBayerPorGrupoResponse";
2
+
3
+ export type TSomatorioEntregaBayerResponse = {
4
+ somatorios: TSomatorioEntregaBayerPorGrupoResponse[];
5
+ }
@@ -1,6 +1,7 @@
1
1
  const cockpitCompras = {
2
2
  findAll: (params?: string) => `/originacao/api/cockpit-compras?${params ?? ""}`,
3
3
  liquidarContrato: (contratoId: string) => `/originacao/api/cockpit-compras/liquidar/${contratoId}`,
4
+ simularRoyalties: (contratoId: string) => `/originacao/api/cockpit-compras/simular-royalties/${contratoId}`,
4
5
  };
5
6
 
6
7
  export default cockpitCompras;
@@ -1,7 +1,9 @@
1
1
  import ApiService from "@/services/ApiService";
2
2
  import { TQueryResponse } from "@base/@types/api";
3
3
  import { TLiquidarContratoRequest } from "@base/@types/api/request/originacao/TLiquidarContratoRequest";
4
+ import { TSimularRoyaltiesRequest } from "@base/@types/api/request/originacao/TSimularRoyaltiesRequest";
4
5
  import { TFindAllCockpitComprasResponse } from "@base/@types/api/response/originacao/TFindAllCockpitComprasResponse";
6
+ import { TSomatorioEntregaBayerResponse } from "@base/@types/api/response/originacao/TSomatorioEntregaBayerResponse";
5
7
  import endpointNavigationConfig from "@base/configs/endpoints.config/endpoints.navigation";
6
8
 
7
9
  const COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT = endpointNavigationConfig.originacao.cockpitCompras;
@@ -19,4 +21,12 @@ export async function apiLiquidarContrato(contratoId: string | number, data: TLi
19
21
  method: "post",
20
22
  data,
21
23
  });
24
+ }
25
+
26
+ export async function apiSimularRoyalties(contratoId: string | number, data: TSimularRoyaltiesRequest) {
27
+ return ApiService.fetchDataWithAxios<TSomatorioEntregaBayerResponse>({
28
+ url: COCKPIT_COMPRAS_ORIGINACAO_ENDPOINT.simularRoyalties(String(contratoId)),
29
+ method: "post",
30
+ data,
31
+ });
22
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.191",
3
+ "version": "5.3.193",
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",