@orbe-agro/client-core 5.1.1 → 5.1.2

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 (29) hide show
  1. package/dist/@types/base/@types/api/request/originacao/TCreateContratoCompraGraosRequest.d.ts +1 -1
  2. package/dist/@types/base/@types/api/request/originacao/TCreateContratoCompraGraosRequest.d.ts.map +1 -1
  3. package/dist/@types/base/@types/api/response/dadosMestres/TFindByIdCentroResponse.d.ts +6 -0
  4. package/dist/@types/base/@types/api/response/dadosMestres/TFindByIdCentroResponse.d.ts.map +1 -0
  5. package/dist/@types/base/@types/api/response/dadosMestres/TFindByIdDepositoResponse.d.ts +8 -0
  6. package/dist/@types/base/@types/api/response/dadosMestres/TFindByIdDepositoResponse.d.ts.map +1 -0
  7. package/dist/@types/base/@types/api/response/originacao/TFindByIdDepositoResponse.d.ts +2 -2
  8. package/dist/@types/base/@types/api/response/originacao/TFindByIdDepositoResponse.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.d.ts +2 -1
  10. package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.d.ts +2 -1
  12. package/dist/@types/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.d.ts.map +1 -1
  13. package/dist/@types/base/services/modules/DadosMestres/Sap/CentroService.d.ts +3 -0
  14. package/dist/@types/base/services/modules/DadosMestres/Sap/CentroService.d.ts.map +1 -1
  15. package/dist/@types/base/services/modules/DadosMestres/Sap/DepositoService.d.ts +3 -0
  16. package/dist/@types/base/services/modules/DadosMestres/Sap/DepositoService.d.ts.map +1 -1
  17. package/dist/base/@types/api/response/dadosMestres/TFindByIdCentroResponse.js +2 -0
  18. package/dist/base/@types/api/response/dadosMestres/TFindByIdCentroResponse.js.map +1 -0
  19. package/dist/base/@types/api/response/dadosMestres/TFindByIdDepositoResponse.js +2 -0
  20. package/dist/base/@types/api/response/dadosMestres/TFindByIdDepositoResponse.js.map +1 -0
  21. package/dist/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.js +4 -3
  22. package/dist/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.js.map +1 -1
  23. package/dist/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.js +4 -3
  24. package/dist/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.js.map +1 -1
  25. package/dist/base/services/modules/DadosMestres/Sap/CentroService.js +8 -1
  26. package/dist/base/services/modules/DadosMestres/Sap/CentroService.js.map +1 -1
  27. package/dist/base/services/modules/DadosMestres/Sap/DepositoService.js +13 -6
  28. package/dist/base/services/modules/DadosMestres/Sap/DepositoService.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { TPrecoSacaRequest } from "./TPrecoSacaRequest";
2
2
  export type TCreateContratoCompraGraosRequest = {
3
- preContratoId: number;
3
+ preContratoId: number | null;
4
4
  dataCompra: string;
5
5
  dataInicioRetirada: string;
6
6
  dataFimRetirada: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TCreateContratoCompraGraosRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/originacao/TCreateContratoCompraGraosRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA"}
1
+ {"version":3,"file":"TCreateContratoCompraGraosRequest.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/request/originacao/TCreateContratoCompraGraosRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG;IAC5C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export type TFindByIdCentroResponse = {
2
+ id: number;
3
+ codigo: string;
4
+ nome: string;
5
+ };
6
+ //# sourceMappingURL=TFindByIdCentroResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TFindByIdCentroResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TFindByIdCentroResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type TFindByIdDepositoResponse = {
2
+ id: number;
3
+ codigoCentro: string;
4
+ codigo: string;
5
+ nome: string;
6
+ elegibilidadeSoja: string;
7
+ };
8
+ //# sourceMappingURL=TFindByIdDepositoResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TFindByIdDepositoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/dadosMestres/TFindByIdDepositoResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAA"}
@@ -1,8 +1,8 @@
1
1
  export type TFindByIdDepositoResponse = {
2
2
  id: number;
3
3
  codigoCentro: string;
4
- codigoDeposito: string;
5
- nomeDeposito: string;
4
+ codigo: string;
5
+ nome: string;
6
6
  elegibilidadeSoja: string;
7
7
  };
8
8
  //# sourceMappingURL=TFindByIdDepositoResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TFindByIdDepositoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindByIdDepositoResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAA"}
1
+ {"version":3,"file":"TFindByIdDepositoResponse.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/originacao/TFindByIdDepositoResponse.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAA"}
@@ -1,5 +1,6 @@
1
1
  declare const centroEndpointConfig: {
2
- findAll: string;
2
+ findMonitor: string;
3
+ findAll: (params?: string) => string;
3
4
  };
4
5
  export default centroEndpointConfig;
5
6
  //# sourceMappingURL=centro.endpoint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"centro.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB;;CAEzB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
1
+ {"version":3,"file":"centro.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB;;uBAEH,MAAM;CAC5B,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  declare const depositoEndpointConfig: {
2
- findAll: string;
2
+ find: string;
3
+ findAll: (params?: string) => string;
3
4
  };
4
5
  export default depositoEndpointConfig;
5
6
  //# sourceMappingURL=deposito.endpoint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deposito.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB;;CAE3B,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"deposito.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB;;uBAEL,MAAM;CAC5B,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,2 +1,5 @@
1
+ import { TQueryResponse } from '@base/@types';
2
+ import { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse';
1
3
  export declare function apiGetCentros(body: any): Promise<unknown>;
4
+ export declare function apiFindAllCentro(params?: string): Promise<TQueryResponse<TFindByIdCentroResponse>>;
2
5
  //# sourceMappingURL=CentroService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CentroService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"names":[],"mappings":"AAGA,wBAAsB,aAAa,CAAC,IAAI,KAAA,oBAMvC"}
1
+ {"version":3,"file":"CentroService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAA;AAExG,wBAAsB,aAAa,CAAC,IAAI,KAAA,oBAMvC;AAED,wBAAsB,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,oDAKrD"}
@@ -1,2 +1,5 @@
1
+ import { TQueryResponse } from '@base/@types';
2
+ import { TFindByIdDepositoResponse } from '@base/@types/api/response/dadosMestres/TFindByIdDepositoResponse';
1
3
  export declare function apiGetDepositos(body: any): Promise<unknown>;
4
+ export declare function apiFindAllDeposito(params?: string): Promise<TQueryResponse<TFindByIdDepositoResponse>>;
2
5
  //# sourceMappingURL=DepositoService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/DepositoService.ts"],"names":[],"mappings":"AAGA,wBAAsB,eAAe,CAAC,IAAI,KAAA,oBAMzC"}
1
+ {"version":3,"file":"DepositoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/DepositoService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAA;AAE5G,wBAAsB,eAAe,CAAC,IAAI,KAAA,oBAMzC;AAED,wBAAsB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,sDAKvD"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TFindByIdCentroResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TFindByIdCentroResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TFindByIdDepositoResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TFindByIdDepositoResponse.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,7 +1,8 @@
1
- const n = "/dados-mestres/api/dm/centro", o = {
2
- findAll: `${n}/find-monitor`
1
+ const n = "/dados-mestres/api/dm/centro", t = {
2
+ findMonitor: `${n}/find-monitor`,
3
+ findAll: (o) => `${n}?${o ?? ""}`
3
4
  };
4
5
  export {
5
- o as default
6
+ t as default
6
7
  };
7
8
  //# sourceMappingURL=centro.endpoint.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"centro.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"sourcesContent":["const CENTRO_API_PATH = '/dados-mestres/api/dm/centro'\n\nconst centroEndpointConfig = {\n findAll: `${CENTRO_API_PATH}/find-monitor`,\n}\n\nexport default centroEndpointConfig\n"],"names":["CENTRO_API_PATH","centroEndpointConfig"],"mappings":"AAAA,MAAMA,IAAkB,gCAElBC,IAAuB;AAAA,EACzB,SAAS,GAAGD,CAAe;AAC/B;"}
1
+ {"version":3,"file":"centro.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config.ts"],"sourcesContent":["const CENTRO_API_PATH = '/dados-mestres/api/dm/centro'\n\nconst centroEndpointConfig = {\n findMonitor: `${CENTRO_API_PATH}/find-monitor`,\n findAll: (params?: string) => `${CENTRO_API_PATH}?${params ?? \"\"}`,\n}\n\nexport default centroEndpointConfig\n"],"names":["CENTRO_API_PATH","centroEndpointConfig","params"],"mappings":"AAAA,MAAMA,IAAkB,gCAElBC,IAAuB;AAAA,EACzB,aAAa,GAAGD,CAAe;AAAA,EAC/B,SAAS,CAACE,MAAoB,GAAGF,CAAe,IAAIE,KAAU,EAAE;AACpE;"}
@@ -1,7 +1,8 @@
1
- const o = "/dados-mestres/api/dm/deposito", d = {
2
- findAll: `${o}/find`
1
+ const d = "/dados-mestres/api/dm/deposito", i = {
2
+ find: `${d}/find`,
3
+ findAll: (o) => `${d}?${o ?? ""}`
3
4
  };
4
5
  export {
5
- d as default
6
+ i as default
6
7
  };
7
8
  //# sourceMappingURL=deposito.endpoint.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deposito.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.ts"],"sourcesContent":["const DEPOSITO_API_PATH = '/dados-mestres/api/dm/deposito'\n\nconst depositoEndpointConfig = {\n findAll: `${DEPOSITO_API_PATH}/find`,\n}\n\nexport default depositoEndpointConfig\n"],"names":["DEPOSITO_API_PATH","depositoEndpointConfig"],"mappings":"AAAA,MAAMA,IAAoB,kCAEpBC,IAAyB;AAAA,EAC3B,SAAS,GAAGD,CAAiB;AACjC;"}
1
+ {"version":3,"file":"deposito.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.ts"],"sourcesContent":["const DEPOSITO_API_PATH = '/dados-mestres/api/dm/deposito'\n\nconst depositoEndpointConfig = {\n find: `${DEPOSITO_API_PATH}/find`,\n findAll: (params?: string) => `${DEPOSITO_API_PATH}?${params ?? \"\"}`\n}\n\nexport default depositoEndpointConfig\n"],"names":["DEPOSITO_API_PATH","depositoEndpointConfig","params"],"mappings":"AAAA,MAAMA,IAAoB,kCAEpBC,IAAyB;AAAA,EAC3B,MAAM,GAAGD,CAAiB;AAAA,EAC1B,SAAS,CAACE,MAAoB,GAAGF,CAAiB,IAAIE,KAAU,EAAE;AACtE;"}
@@ -2,12 +2,19 @@ import o from "../../../../configs/endpoints.config/DadosMestres/Sap/centro.endp
2
2
  import i from "../../../../../@ecme/services/ApiService.js";
3
3
  async function e(t) {
4
4
  return i.fetchDataWithAxios({
5
- url: o.findAll,
5
+ url: o.findMonitor,
6
6
  method: "post",
7
7
  data: t
8
8
  });
9
9
  }
10
+ async function a(t) {
11
+ return i.fetchDataWithAxios({
12
+ url: o.findAll(t),
13
+ method: "get"
14
+ });
15
+ }
10
16
  export {
17
+ a as apiFindAllCentro,
11
18
  e as apiGetCentros
12
19
  };
13
20
  //# sourceMappingURL=CentroService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CentroService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"sourcesContent":["import centroEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetCentros(body) {\n return ApiService.fetchDataWithAxios({\n url: centroEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}"],"names":["apiGetCentros","body","ApiService","centroEndpointConfig"],"mappings":";;AAGA,eAAsBA,EAAcC,GAAM;AACtC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAqB;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"CentroService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/CentroService.ts"],"sourcesContent":["import centroEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/centro.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types'\nimport { TFindByIdCentroResponse } from '@base/@types/api/response/dadosMestres/TFindByIdCentroResponse'\n\nexport async function apiGetCentros(body) {\n return ApiService.fetchDataWithAxios({\n url: centroEndpointConfig.findMonitor,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllCentro(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdCentroResponse>>({\n url: centroEndpointConfig.findAll(params),\n method: 'get',\n })\n}"],"names":["apiGetCentros","body","ApiService","centroEndpointConfig","apiFindAllCentro","params"],"mappings":";;AAKA,eAAsBA,EAAcC,GAAM;AACtC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAqB;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAAiBC,GAAiB;AACpD,SAAOH,EAAW,mBAA4D;AAAA,IAC1E,KAAKC,EAAqB,QAAQE,CAAM;AAAA,IACxC,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -1,13 +1,20 @@
1
- import t from "../../../../configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.js";
2
- import i from "../../../../../@ecme/services/ApiService.js";
3
- async function r(o) {
4
- return i.fetchDataWithAxios({
5
- url: t.findAll,
1
+ import i from "../../../../configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config.js";
2
+ import o from "../../../../../@ecme/services/ApiService.js";
3
+ async function r(t) {
4
+ return o.fetchDataWithAxios({
5
+ url: i.find,
6
6
  method: "post",
7
- data: o
7
+ data: t
8
+ });
9
+ }
10
+ async function p(t) {
11
+ return o.fetchDataWithAxios({
12
+ url: i.findAll(t),
13
+ method: "get"
8
14
  });
9
15
  }
10
16
  export {
17
+ p as apiFindAllDeposito,
11
18
  r as apiGetDepositos
12
19
  };
13
20
  //# sourceMappingURL=DepositoService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositoService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/DepositoService.ts"],"sourcesContent":["import depositoEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config'\nimport ApiService from '@/services/ApiService'\n\nexport async function apiGetDepositos(body) {\n return ApiService.fetchDataWithAxios({\n url: depositoEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}"],"names":["apiGetDepositos","body","ApiService","depositoEndpointConfig"],"mappings":";;AAGA,eAAsBA,EAAgBC,GAAM;AACxC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAuB;AAAA,IAC5B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"DepositoService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/DepositoService.ts"],"sourcesContent":["import depositoEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/deposito.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types'\nimport { TFindByIdDepositoResponse } from '@base/@types/api/response/dadosMestres/TFindByIdDepositoResponse'\n\nexport async function apiGetDepositos(body) {\n return ApiService.fetchDataWithAxios({\n url: depositoEndpointConfig.find,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllDeposito(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdDepositoResponse>>({\n url: depositoEndpointConfig.findAll(params),\n method: 'get',\n })\n}"],"names":["apiGetDepositos","body","ApiService","depositoEndpointConfig","apiFindAllDeposito","params"],"mappings":";;AAKA,eAAsBA,EAAgBC,GAAM;AACxC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAuB;AAAA,IAC5B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAAmBC,GAAiB;AACtD,SAAOH,EAAW,mBAA8D;AAAA,IAC5E,KAAKC,EAAuB,QAAQE,CAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACX;AACL;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
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",