@orbe-agro/client-core 5.3.191 → 5.3.192

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 (30) 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/TSomatorioEntregaBayerPorGrupoResponse.d.ts +8 -0
  4. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.d.ts.map +1 -0
  5. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.d.ts +5 -0
  6. package/dist/@types/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.d.ts.map +1 -0
  7. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -0
  8. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts +1 -0
  10. package/dist/@types/base/configs/endpoints.config/originacao/config/cockpitCompras.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts +1 -0
  12. package/dist/@types/base/configs/endpoints.config/originacao/originacao.d.ts.map +1 -1
  13. package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts +3 -0
  14. package/dist/@types/base/services/modules/originacao/cockpitCompras/cockpitComprasService.d.ts.map +1 -1
  15. package/dist/base/@types/api/request/originacao/TSimularRoyaltiesRequest.js +2 -0
  16. package/dist/base/@types/api/request/originacao/TSimularRoyaltiesRequest.js.map +1 -0
  17. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.js +2 -0
  18. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.js.map +1 -0
  19. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.js +2 -0
  20. package/dist/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.js.map +1 -0
  21. package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js +2 -1
  22. package/dist/base/configs/endpoints.config/originacao/config/cockpitCompras.js.map +1 -1
  23. package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js +20 -12
  24. package/dist/base/services/modules/originacao/cockpitCompras/cockpitComprasService.js.map +1 -1
  25. package/lib/base/@types/api/request/originacao/TSimularRoyaltiesRequest.ts +6 -0
  26. package/lib/base/@types/api/response/originacao/TSomatorioEntregaBayerPorGrupoResponse.ts +7 -0
  27. package/lib/base/@types/api/response/originacao/TSomatorioEntregaBayerResponse.ts +5 -0
  28. package/lib/base/configs/endpoints.config/originacao/config/cockpitCompras.ts +1 -0
  29. package/lib/base/services/modules/originacao/cockpitCompras/cockpitComprasService.ts +10 -0
  30. 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"}
@@ -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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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=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
+ }
@@ -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.192",
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",