@orbe-agro/client-core 5.3.228 → 5.3.230

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.
@@ -7,7 +7,7 @@ import AxiosRequestIntrceptorConfigCallback from "./AxiosRequestIntrceptorConfig
7
7
  import AxiosResponseIntrceptorErrorCallback from "./AxiosResponseIntrceptorErrorCallback";
8
8
 
9
9
  const AxiosBase = axios.create({
10
- timeout: 60000,
10
+ timeout: 600000,
11
11
  baseURL: API_URL,
12
12
  });
13
13
 
@@ -12,6 +12,7 @@ const produto = {
12
12
  findByIds: { endpoint: `${PRODUTO_BASE_URL}/find-by-ids`, method: 'post' },
13
13
  findByCodigos: { endpoint: `${PRODUTO_BASE_URL}/find-by-codigos`, method: 'post' },
14
14
  update: { endpoint: PRODUTO_BASE_URL, method: 'patch' },
15
+ getMultiplicadorUnidadeMedida: { endpoint: `${PRODUTO_BASE_URL}/{idProduto}/multiplicador`, method: 'get' },
15
16
  }
16
17
 
17
18
  export default produto
@@ -111,4 +111,14 @@ export async function apiUpdateProduto(payload) {
111
111
  method: PRODUTO_ENDPOINT.update.method,
112
112
  data: payload,
113
113
  })
114
+ }
115
+
116
+ export async function apiGetMultiplicadorUnidadeMedida(unidadeMedidaXml: string, idProduto: number) {
117
+ return ApiService.fetchDataWithAxios({
118
+ url: PRODUTO_ENDPOINT.getMultiplicadorUnidadeMedida.endpoint.replace('{idProduto}', idProduto.toString()),
119
+ method: PRODUTO_ENDPOINT.getMultiplicadorUnidadeMedida.method,
120
+ params: {
121
+ unidadeMedidaXml
122
+ }
123
+ })
114
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.228",
3
+ "version": "5.3.230",
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",