@orbe-agro/client-core 5.3.54 → 5.3.57
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.
- package/dist/@types/base/@types/models/dm/grupoVenda.d.ts +7 -0
- package/dist/@types/base/@types/models/dm/grupoVenda.d.ts.map +1 -0
- package/dist/@types/base/@types/models/dm/tipoDocumentoVenda.d.ts +7 -0
- package/dist/@types/base/@types/models/dm/tipoDocumentoVenda.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/grupoVenda.d.ts +16 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/grupoVenda.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/tipoDocumentoVenda.d.ts +16 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/tipoDocumentoVenda.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.d.ts +12 -0
- package/dist/@types/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/grupoVenda/useGrupoVendaList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/grupoVenda/useGrupoVendaList.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.d.ts +12 -0
- package/dist/@types/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +4 -0
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/centroCusto/CentroCustoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/contaContabil/ContaContabilService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/deposito/DepositoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/grupoVenda/GrupoVendaService.d.ts +6 -0
- package/dist/@types/base/services/modules/dm/grupoVenda/GrupoVendaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/dm/imobilizado/ImobilizadoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/incoterms/IncotermsService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/index.d.ts +7 -4
- package/dist/@types/base/services/modules/dm/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/produto/ProdutoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.d.ts +6 -0
- package/dist/@types/base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.d.ts.map +1 -0
- package/dist/@types/base/store/dm/grupoVenda/grupoVendaListStore.d.ts +4 -0
- package/dist/@types/base/store/dm/grupoVenda/grupoVendaListStore.d.ts.map +1 -0
- package/dist/@types/base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.d.ts +4 -0
- package/dist/@types/base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.d.ts.map +1 -0
- package/dist/base/@types/models/dm/grupoVenda.js +2 -0
- package/dist/base/@types/models/dm/grupoVenda.js.map +1 -0
- package/dist/base/@types/models/dm/tipoDocumentoVenda.js +2 -0
- package/dist/base/@types/models/dm/tipoDocumentoVenda.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/grupoVenda.js +9 -0
- package/dist/base/configs/endpoints.config/dm/config/grupoVenda.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/tipoDocumentoVenda.js +9 -0
- package/dist/base/configs/endpoints.config/dm/config/tipoDocumentoVenda.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/dm.js +17 -13
- package/dist/base/configs/endpoints.config/dm/dm.js.map +1 -1
- package/dist/base/configs/endpoints.config/transportadora/tipoCarga.js +1 -1
- package/dist/base/configs/endpoints.config/transportadora/tipoCarga.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +27 -0
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -0
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +26 -0
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -0
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +27 -0
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -0
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +26 -0
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -0
- package/dist/base/hooks/index.js +36 -28
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/index.js +386 -368
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/index.js +323 -313
- package/dist/base/services/index.js.map +1 -1
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js.map +1 -1
- package/dist/base/services/modules/dm/centroCusto/CentroCustoService.js.map +1 -1
- package/dist/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.js.map +1 -1
- package/dist/base/services/modules/dm/contaContabil/ContaContabilService.js.map +1 -1
- package/dist/base/services/modules/dm/deposito/DepositoService.js.map +1 -1
- package/dist/base/services/modules/dm/grupoVenda/GrupoVendaService.js +30 -0
- package/dist/base/services/modules/dm/grupoVenda/GrupoVendaService.js.map +1 -0
- package/dist/base/services/modules/dm/imobilizado/ImobilizadoService.js.map +1 -1
- package/dist/base/services/modules/dm/incoterms/IncotermsService.js.map +1 -1
- package/dist/base/services/modules/dm/index.js +45 -35
- package/dist/base/services/modules/dm/index.js.map +1 -1
- package/dist/base/services/modules/dm/produto/ProdutoService.js.map +1 -1
- package/dist/base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js +30 -0
- package/dist/base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js.map +1 -0
- package/dist/base/services/modules/index.js +325 -315
- package/dist/base/services/modules/index.js.map +1 -1
- package/dist/base/store/dm/grupoVenda/grupoVendaListStore.js +14 -0
- package/dist/base/store/dm/grupoVenda/grupoVendaListStore.js.map +1 -0
- package/dist/base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.js +14 -0
- package/dist/base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { apiFindDmTipoDocumentoVendaByCodigo as c } from "../../../services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js";
|
|
2
|
+
import { useTipoDocumentoVendaListStore as u } from "../../../store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.js";
|
|
3
|
+
import p from "swr";
|
|
4
|
+
function L() {
|
|
5
|
+
const { tableParams: n, filterParams: o, setTableParams: a, setFilterParams: d } = u((t) => t), e = o == null ? void 0 : o.codigo, { data: i, error: s, isLoading: m, mutate: r } = p(
|
|
6
|
+
e ? ["/api/dm/tipo-documento-venda/find/{codigo}", e] : null,
|
|
7
|
+
([, t]) => c(t),
|
|
8
|
+
{
|
|
9
|
+
revalidateOnFocus: !1
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
return {
|
|
13
|
+
data: i,
|
|
14
|
+
tipoDocumentoVendasByCodigoList: i || [],
|
|
15
|
+
error: s,
|
|
16
|
+
isLoading: m,
|
|
17
|
+
tableParams: n,
|
|
18
|
+
filterParams: o,
|
|
19
|
+
mutate: r,
|
|
20
|
+
setTableParams: a,
|
|
21
|
+
setFilterParams: d
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
L as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useTipoDocumentoVendaByCodigoList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTipoDocumentoVendaByCodigoList.js","sources":["../../../../../lib/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.tsx"],"sourcesContent":["import { apiFindDmTipoDocumentoVendaByCodigo } from '@base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService'\nimport { useTipoDocumentoVendaListStore } from '@base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore'\nimport useSWR from 'swr'\n\nexport default function useTipoDocumentoVendaByCodigoList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } = useTipoDocumentoVendaListStore((state) => state)\n\n const codigo = filterParams?.codigo\n\n const { data, error, isLoading, mutate } = useSWR(\n codigo ? [`/api/dm/tipo-documento-venda/find/{codigo}`, codigo] : null,\n ([, codigo]: [string, string]) => apiFindDmTipoDocumentoVendaByCodigo(codigo),\n {\n revalidateOnFocus: false,\n }\n )\n\n const tipoDocumentoVendasByCodigoList = data || []\n\n return {\n data,\n tipoDocumentoVendasByCodigoList,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useTipoDocumentoVendaByCodigoList","tableParams","filterParams","setTableParams","setFilterParams","useTipoDocumentoVendaListStore","state","codigo","data","error","isLoading","mutate","useSWR","apiFindDmTipoDocumentoVendaByCodigo"],"mappings":";;;AAIA,SAAwBA,IAAoC;AACxD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAAoBC,EAA+B,CAACC,MAAUA,CAAK,GAEhHC,IAASL,KAAA,gBAAAA,EAAc,QAEvB,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL,IAAS,CAAC,8CAA8CA,CAAM,IAAI;AAAA,IAClE,CAAC,GAAGA,CAAM,MAAwBM,EAAoCN,CAAM;AAAA,IAC5E;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB;AAKJ,SAAO;AAAA,IACH,MAAAC;AAAA,IACA,iCAJoCA,KAAQ,CAAA;AAAA,IAK5C,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { apiFindDmTipoDocumentoVenda as p } from "../../../services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js";
|
|
2
|
+
import { useTipoDocumentoVendaListStore as l } from "../../../store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore.js";
|
|
3
|
+
import f from "swr";
|
|
4
|
+
function V() {
|
|
5
|
+
const { tableParams: e, filterParams: t, setTableParams: n, setFilterParams: s } = l((d) => d), a = ["/api/dm/tipo-documento-venda/find", t], { data: o, error: i, isLoading: r, mutate: m } = f(
|
|
6
|
+
a,
|
|
7
|
+
() => p(),
|
|
8
|
+
{ revalidateOnFocus: !1 }
|
|
9
|
+
), u = o || [], c = (o == null ? void 0 : o.length) || 0;
|
|
10
|
+
return {
|
|
11
|
+
data: o,
|
|
12
|
+
tipoDocumentoVendasList: u,
|
|
13
|
+
tipoDocumentoVendasListTotal: c,
|
|
14
|
+
error: i,
|
|
15
|
+
isLoading: r,
|
|
16
|
+
tableParams: e,
|
|
17
|
+
filterParams: t,
|
|
18
|
+
mutate: m,
|
|
19
|
+
setTableParams: n,
|
|
20
|
+
setFilterParams: s
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
V as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useTipoDocumentoVendaList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTipoDocumentoVendaList.js","sources":["../../../../../lib/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.tsx"],"sourcesContent":["import { apiFindDmTipoDocumentoVenda } from '@base/services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService';\nimport { useTipoDocumentoVendaListStore } from '@base/store/dm/tipoDocumentoVenda/tipoDocumentoVendaListStore';\nimport useSWR from 'swr';\n\nexport default function useTipoDocumentoVendaList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useTipoDocumentoVendaListStore((state) => state);\n\n const swrKey = [\"/api/dm/tipo-documento-venda/find\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmTipoDocumentoVenda(),\n { revalidateOnFocus: false }\n );\n\n const tipoDocumentoVendasList = data || []\n\n const tipoDocumentoVendasListTotal = data?.length || 0\n\n return {\n data,\n tipoDocumentoVendasList,\n tipoDocumentoVendasListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useTipoDocumentoVendaList","tableParams","filterParams","setTableParams","setFilterParams","useTipoDocumentoVendaListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmTipoDocumentoVenda","tipoDocumentoVendasList","tipoDocumentoVendasListTotal"],"mappings":";;;AAIA,SAAwBA,IAA4B;AAChD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA+B,CAACC,MAAUA,CAAK,GAE7CC,IAAS,CAAC,qCAAqCL,CAAY,GAE3D,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAA;AAAA,IACN,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBC,IAA0BN,KAAQ,CAAA,GAElCO,KAA+BP,KAAA,gBAAAA,EAAM,WAAU;AAErD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,yBAAAM;AAAA,IACA,8BAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
|
package/dist/base/hooks/index.js
CHANGED
|
@@ -4,22 +4,26 @@ import { default as u } from "./dm/businessPartner/useBusinessPartnerClienteList
|
|
|
4
4
|
import { default as f } from "./dm/businessPartner/useBusinessPartnerFornecedorList.js";
|
|
5
5
|
import { default as m } from "./dm/canalDistribuicao/useCanalDistribuicaoList.js";
|
|
6
6
|
import { default as l } from "./dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as x } from "./dm/centro/useCentroList.js";
|
|
8
8
|
import { default as C } from "./dm/centro/useCentroByCodigoList.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
9
|
+
import { default as c } from "./dm/condicaoPagamento/useCondicaoPagamentoList.js";
|
|
10
|
+
import { default as P } from "./dm/deposito/useDepositoList.js";
|
|
11
11
|
import { default as D } from "./dm/deposito/useDepositoByCodigoList.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
12
|
+
import { default as F } from "./dm/deposito/useDepositosByCodigoCentroList.js";
|
|
13
|
+
import { default as b } from "./dm/escritorioVenda/useEscritorioVendaList.js";
|
|
14
|
+
import { default as I } from "./dm/escritorioVenda/useEscritorioVendaByCodigoList.js";
|
|
15
|
+
import { default as v } from "./dm/formaPagamento/useFormaPagamentoList.js";
|
|
16
|
+
import { default as R } from "./dm/formaPagamento/useFormaPagamentoByCodigoList.js";
|
|
17
|
+
import { default as h } from "./dm/grupoVenda/useGrupoVendaList.js";
|
|
18
|
+
import { default as k } from "./dm/grupoVenda/useGrupoVendaByCodigoList.js";
|
|
19
|
+
import { default as w } from "./dm/incoterms/useIncotermsList.js";
|
|
20
|
+
import { default as H } from "./dm/produto/useProdutoList.js";
|
|
21
|
+
import { default as K } from "./dm/produto/useProdutoByCodigoList.js";
|
|
22
|
+
import { default as N } from "./dm/produto/useProdutoByGrupoProdutoList.js";
|
|
23
|
+
import { default as Q } from "./dm/produto/useProdutoIsPrecificadoRacaoList.js";
|
|
24
|
+
import { default as W } from "./dm/setorAtividade/useSetorAtividadeList.js";
|
|
25
|
+
import { default as Y } from "./dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js";
|
|
26
|
+
import { default as _ } from "./dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js";
|
|
23
27
|
export {
|
|
24
28
|
u as useBusinessPartnerClienteList,
|
|
25
29
|
f as useBusinessPartnerFornecedorList,
|
|
@@ -27,21 +31,25 @@ export {
|
|
|
27
31
|
l as useCanalDistribuicaoByCodigoList,
|
|
28
32
|
m as useCanalDistribuicaoList,
|
|
29
33
|
C as useCentroByCodigoList,
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
x as useCentroList,
|
|
35
|
+
c as useCondicaoPagamentoList,
|
|
32
36
|
D as useDepositoByCodigoList,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
P as useDepositoList,
|
|
38
|
+
F as useDepositosByCodigoCentroList,
|
|
39
|
+
I as useEscritorioVendaByCodigoList,
|
|
40
|
+
b as useEscritorioVendaList,
|
|
41
|
+
R as useFormaPagamentoByCodigoList,
|
|
42
|
+
v as useFormaPagamentoList,
|
|
43
|
+
k as useGrupoVendaByCodigoList,
|
|
44
|
+
h as useGrupoVendaList,
|
|
45
|
+
w as useIncotermsList,
|
|
40
46
|
t as useList,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
K as useProdutoByCodigoList,
|
|
48
|
+
N as useProdutoByGrupoProdutoList,
|
|
49
|
+
Q as useProdutoIsPrecificadoRacaoList,
|
|
50
|
+
H as useProdutoList,
|
|
51
|
+
W as useSetorAtividadeList,
|
|
52
|
+
_ as useTipoDocumentoVendaByCodigoList,
|
|
53
|
+
Y as useTipoDocumentoVendaList
|
|
46
54
|
};
|
|
47
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|