@orbe-agro/client-core 5.3.122 → 5.3.123

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.
@@ -18,7 +18,7 @@ async function p(i) {
18
18
  async function f(i) {
19
19
  const { tipoBusca: a, ...d } = i ?? {};
20
20
  return t.fetchDataWithAxios({
21
- url: `${o.findByTipoBusca.endpoint}/${a}`,
21
+ url: `${o.findByTipoBusca.endpoint}${a}`,
22
22
  method: o.findByTipoBusca.method,
23
23
  data: d
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FavorecidoService.js","sources":["../../../../../../lib/base/services/modules/transportadora/Favorecido/FavorecidoService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService';\nimport { IFilterParams, TQueryResponse } from '@base/@types/api';\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport { TConsultaFavorecido } from '@base/@types/models/transportadora/consultarFavorecido';\nimport { TFavorecido } from '@base/@types/models/transportadora/favorecido';\n\nconst FAVORECIDO_PROJECT_ENDPOINT = endpointConfig.favorecido;\n\nexport async function apiAddFavorecido(body: TFavorecido) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFavorecido>>({\n url: FAVORECIDO_PROJECT_ENDPOINT.add.endpoint,\n method: FAVORECIDO_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiFindAllFavorecido(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TConsultaFavorecido>>({\n url: FAVORECIDO_PROJECT_ENDPOINT.findAll.endpoint,\n method: FAVORECIDO_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiFindFavorecidoByTipoBusca(params?: IFilterParams & { tipoBusca?: string }) {\n const { tipoBusca, ...body } = params ?? {};\n return ApiService.fetchDataWithAxios<TQueryResponse<TFavorecido>>({\n url: `${FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.endpoint}/${tipoBusca}`,\n method: FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.method,\n data: body,\n });\n}\n\n"],"names":["FAVORECIDO_PROJECT_ENDPOINT","endpointConfig","apiAddFavorecido","body","ApiService","apiFindAllFavorecido","apiFindFavorecidoByTipoBusca","params","tipoBusca"],"mappings":";;AAMA,MAAMA,IAA8BC,EAAe;AAEnD,eAAsBC,EAAiBC,GAAmB;AACtD,SAAOC,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAA4B,IAAI;AAAA,IACrC,QAAQA,EAA4B,IAAI;AAAA,IACxC,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAqBF,GAAsB;AAC7D,SAAOC,EAAW,mBAAwD;AAAA,IACtE,KAAKJ,EAA4B,QAAQ;AAAA,IACzC,QAAQA,EAA4B,QAAQ;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAA6BC,GAAiD;AAChG,QAAM,EAAE,WAAAC,GAAW,GAAGL,EAAA,IAASI,KAAU,CAAA;AACzC,SAAOH,EAAW,mBAAgD;AAAA,IAC9D,KAAK,GAAGJ,EAA4B,gBAAgB,QAAQ,IAAIQ,CAAS;AAAA,IACzE,QAAQR,EAA4B,gBAAgB;AAAA,IACpD,MAAMG;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"FavorecidoService.js","sources":["../../../../../../lib/base/services/modules/transportadora/Favorecido/FavorecidoService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService';\nimport { IFilterParams, TQueryResponse } from '@base/@types/api';\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport { TConsultaFavorecido } from '@base/@types/models/transportadora/consultarFavorecido';\nimport { TFavorecido } from '@base/@types/models/transportadora/favorecido';\n\nconst FAVORECIDO_PROJECT_ENDPOINT = endpointConfig.favorecido;\n\nexport async function apiAddFavorecido(body: TFavorecido) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFavorecido>>({\n url: FAVORECIDO_PROJECT_ENDPOINT.add.endpoint,\n method: FAVORECIDO_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiFindAllFavorecido(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TConsultaFavorecido>>({\n url: FAVORECIDO_PROJECT_ENDPOINT.findAll.endpoint,\n method: FAVORECIDO_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiFindFavorecidoByTipoBusca(params?: IFilterParams & { tipoBusca?: string }) {\n const { tipoBusca, ...body } = params ?? {};\n return ApiService.fetchDataWithAxios<TQueryResponse<TFavorecido>>({\n url: `${FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.endpoint}${tipoBusca}`,\n method: FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.method,\n data: body,\n });\n}\n\n"],"names":["FAVORECIDO_PROJECT_ENDPOINT","endpointConfig","apiAddFavorecido","body","ApiService","apiFindAllFavorecido","apiFindFavorecidoByTipoBusca","params","tipoBusca"],"mappings":";;AAMA,MAAMA,IAA8BC,EAAe;AAEnD,eAAsBC,EAAiBC,GAAmB;AACtD,SAAOC,EAAW,mBAAgD;AAAA,IAC9D,KAAKJ,EAA4B,IAAI;AAAA,IACrC,QAAQA,EAA4B,IAAI;AAAA,IACxC,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAqBF,GAAsB;AAC7D,SAAOC,EAAW,mBAAwD;AAAA,IACtE,KAAKJ,EAA4B,QAAQ;AAAA,IACzC,QAAQA,EAA4B,QAAQ;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAA6BC,GAAiD;AAChG,QAAM,EAAE,WAAAC,GAAW,GAAGL,EAAA,IAASI,KAAU,CAAA;AACzC,SAAOH,EAAW,mBAAgD;AAAA,IAC9D,KAAK,GAAGJ,EAA4B,gBAAgB,QAAQ,GAAGQ,CAAS;AAAA,IACxE,QAAQR,EAA4B,gBAAgB;AAAA,IACpD,MAAMG;AAAA,EAAA,CACT;AACL;"}
@@ -25,7 +25,7 @@ export async function apiFindAllFavorecido(body?: IFilterParams) {
25
25
  export async function apiFindFavorecidoByTipoBusca(params?: IFilterParams & { tipoBusca?: string }) {
26
26
  const { tipoBusca, ...body } = params ?? {};
27
27
  return ApiService.fetchDataWithAxios<TQueryResponse<TFavorecido>>({
28
- url: `${FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.endpoint}/${tipoBusca}`,
28
+ url: `${FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.endpoint}${tipoBusca}`,
29
29
  method: FAVORECIDO_PROJECT_ENDPOINT.findByTipoBusca.method,
30
30
  data: body,
31
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.122",
3
+ "version": "5.3.123",
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",