@orbe-agro/client-core 5.3.135 → 5.3.136

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.
@@ -1,6 +1,7 @@
1
1
  declare const produtoEndpointConfig: {
2
2
  findAll: string;
3
3
  findAllWithSearch: (search: string) => string;
4
+ findOne: string;
4
5
  };
5
6
  export default produtoEndpointConfig;
6
7
  //# sourceMappingURL=produto.endpoint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"produto.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;gCAEK,MAAM;CACrC,CAAA;AAED,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"produto.endpoint.config.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;gCAEK,MAAM;;CAErC,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -2,4 +2,5 @@ import { TQueryResponse } from '@base/@types/api';
2
2
  import { TFindByIdProdutoResponse } from '@base/@types/api/response/dadosMestres/TFindByIdProdutoResponse';
3
3
  export declare function apiGetProdutos(body: any): Promise<unknown>;
4
4
  export declare function apiFindAllProdutos(search: string): Promise<TQueryResponse<TFindByIdProdutoResponse>>;
5
+ export declare function apiGetProduto(id: any): Promise<unknown>;
5
6
  //# sourceMappingURL=ProdutoService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProdutoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/ProdutoService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iEAAiE,CAAA;AAE1G,wBAAsB,cAAc,CAAC,IAAI,KAAA,oBAMxC;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,qDAMtD"}
1
+ {"version":3,"file":"ProdutoService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/DadosMestres/Sap/ProdutoService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iEAAiE,CAAA;AAE1G,wBAAsB,cAAc,CAAC,IAAI,KAAA,oBAMxC;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,qDAMtD;AAED,wBAAsB,aAAa,CAAC,EAAE,KAAA,oBAKrC"}
@@ -1,8 +1,9 @@
1
- const o = "/dados-mestres/api/dm/produto", t = {
2
- findAll: `${o}/find-monitor`,
3
- findAllWithSearch: (d) => `${o}?${d}`
1
+ const d = "/dados-mestres/api/dm/produto", o = {
2
+ findAll: `${d}/find-monitor`,
3
+ findAllWithSearch: (n) => `${d}?${n}`,
4
+ findOne: `${d}/find-by-id/`
4
5
  };
5
6
  export {
6
- t as default
7
+ o as default
7
8
  };
8
9
  //# sourceMappingURL=produto.endpoint.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"produto.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config.ts"],"sourcesContent":["const PRODUTO_API_PATH = '/dados-mestres/api/dm/produto'\n\nconst produtoEndpointConfig = {\n findAll: `${PRODUTO_API_PATH}/find-monitor`,\n findAllWithSearch: (search: string) => `${PRODUTO_API_PATH}?${search}`\n}\n\nexport default produtoEndpointConfig\n"],"names":["PRODUTO_API_PATH","produtoEndpointConfig","search"],"mappings":"AAAA,MAAMA,IAAmB,iCAEnBC,IAAwB;AAAA,EAC1B,SAAS,GAAGD,CAAgB;AAAA,EAC5B,mBAAmB,CAACE,MAAmB,GAAGF,CAAgB,IAAIE,CAAM;AACxE;"}
1
+ {"version":3,"file":"produto.endpoint.config.js","sources":["../../../../../../lib/base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config.ts"],"sourcesContent":["const PRODUTO_API_PATH = '/dados-mestres/api/dm/produto'\n\nconst produtoEndpointConfig = {\n findAll: `${PRODUTO_API_PATH}/find-monitor`,\n findAllWithSearch: (search: string) => `${PRODUTO_API_PATH}?${search}`,\n findOne: `${PRODUTO_API_PATH}/find-by-id/`\n}\n\nexport default produtoEndpointConfig\n"],"names":["PRODUTO_API_PATH","produtoEndpointConfig","search"],"mappings":"AAAA,MAAMA,IAAmB,iCAEnBC,IAAwB;AAAA,EAC1B,SAAS,GAAGD,CAAgB;AAAA,EAC5B,mBAAmB,CAACE,MAAmB,GAAGF,CAAgB,IAAIE,CAAM;AAAA,EACpE,SAAS,GAAGF,CAAgB;AAChC;"}
@@ -1,21 +1,28 @@
1
1
  import o from "../../../../configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config.js";
2
2
  import i from "../../../../../@ecme/services/ApiService.js";
3
- async function e(t) {
3
+ async function a(t) {
4
4
  return i.fetchDataWithAxios({
5
5
  url: o.findAll,
6
6
  method: "post",
7
7
  data: t
8
8
  });
9
9
  }
10
- async function d(t) {
10
+ async function u(t) {
11
11
  const r = t ? `search=${t}` : "";
12
12
  return i.fetchDataWithAxios({
13
13
  url: o.findAllWithSearch(r),
14
14
  method: "get"
15
15
  });
16
16
  }
17
+ async function d(t) {
18
+ return i.fetchDataWithAxios({
19
+ url: o.findOne + t,
20
+ method: "post"
21
+ });
22
+ }
17
23
  export {
18
- d as apiFindAllProdutos,
19
- e as apiGetProdutos
24
+ u as apiFindAllProdutos,
25
+ d as apiGetProduto,
26
+ a as apiGetProdutos
20
27
  };
21
28
  //# sourceMappingURL=ProdutoService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProdutoService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/ProdutoService.ts"],"sourcesContent":["import produtoEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types/api'\nimport { TFindByIdProdutoResponse } from '@base/@types/api/response/dadosMestres/TFindByIdProdutoResponse'\n\nexport async function apiGetProdutos(body) {\n return ApiService.fetchDataWithAxios({\n url: produtoEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllProdutos(search: string) {\n const queryParam = search ? `search=${search}` : ''\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdProdutoResponse>>({\n url: produtoEndpointConfig.findAllWithSearch(queryParam),\n method: 'get'\n })\n}"],"names":["apiGetProdutos","body","ApiService","produtoEndpointConfig","apiFindAllProdutos","search","queryParam"],"mappings":";;AAKA,eAAsBA,EAAeC,GAAM;AACvC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAsB;AAAA,IAC3B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAAmBC,GAAgB;AACrD,QAAMC,IAAaD,IAAS,UAAUA,CAAM,KAAK;AACjD,SAAOH,EAAW,mBAA6D;AAAA,IAC3E,KAAKC,EAAsB,kBAAkBG,CAAU;AAAA,IACvD,QAAQ;AAAA,EAAA,CACX;AACL;"}
1
+ {"version":3,"file":"ProdutoService.js","sources":["../../../../../../lib/base/services/modules/DadosMestres/Sap/ProdutoService.ts"],"sourcesContent":["import produtoEndpointConfig from '@base/configs/endpoints.config/DadosMestres/Sap/produto.endpoint.config'\nimport ApiService from '@/services/ApiService'\nimport { TQueryResponse } from '@base/@types/api'\nimport { TFindByIdProdutoResponse } from '@base/@types/api/response/dadosMestres/TFindByIdProdutoResponse'\n\nexport async function apiGetProdutos(body) {\n return ApiService.fetchDataWithAxios({\n url: produtoEndpointConfig.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiFindAllProdutos(search: string) {\n const queryParam = search ? `search=${search}` : ''\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindByIdProdutoResponse>>({\n url: produtoEndpointConfig.findAllWithSearch(queryParam),\n method: 'get'\n })\n}\n\nexport async function apiGetProduto(id) {\n return ApiService.fetchDataWithAxios({\n url: produtoEndpointConfig.findOne + id,\n method: 'post',\n })\n}"],"names":["apiGetProdutos","body","ApiService","produtoEndpointConfig","apiFindAllProdutos","search","queryParam","apiGetProduto","id"],"mappings":";;AAKA,eAAsBA,EAAeC,GAAM;AACvC,SAAOC,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAsB;AAAA,IAC3B,QAAQ;AAAA,IACR,MAAMF;AAAA,EAAA,CACT;AACL;AAEA,eAAsBG,EAAmBC,GAAgB;AACrD,QAAMC,IAAaD,IAAS,UAAUA,CAAM,KAAK;AACjD,SAAOH,EAAW,mBAA6D;AAAA,IAC3E,KAAKC,EAAsB,kBAAkBG,CAAU;AAAA,IACvD,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsBC,EAAcC,GAAI;AACpC,SAAON,EAAW,mBAAmB;AAAA,IACjC,KAAKC,EAAsB,UAAUK;AAAA,IACrC,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -2,7 +2,8 @@ const PRODUTO_API_PATH = '/dados-mestres/api/dm/produto'
2
2
 
3
3
  const produtoEndpointConfig = {
4
4
  findAll: `${PRODUTO_API_PATH}/find-monitor`,
5
- findAllWithSearch: (search: string) => `${PRODUTO_API_PATH}?${search}`
5
+ findAllWithSearch: (search: string) => `${PRODUTO_API_PATH}?${search}`,
6
+ findOne: `${PRODUTO_API_PATH}/find-by-id/`
6
7
  }
7
8
 
8
9
  export default produtoEndpointConfig
@@ -17,4 +17,11 @@ export async function apiFindAllProdutos(search: string) {
17
17
  url: produtoEndpointConfig.findAllWithSearch(queryParam),
18
18
  method: 'get'
19
19
  })
20
+ }
21
+
22
+ export async function apiGetProduto(id) {
23
+ return ApiService.fetchDataWithAxios({
24
+ url: produtoEndpointConfig.findOne + id,
25
+ method: 'post',
26
+ })
20
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.135",
3
+ "version": "5.3.136",
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",