@orbe-agro/client-core 3.3.12 → 3.3.13
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/lib/@ecme/components/shared/DataTable.js +163 -152
- package/dist/lib/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/lib/base/@types/models/dm/businessPartner.js +2 -0
- package/dist/lib/base/@types/models/dm/businessPartner.js.map +1 -0
- package/dist/lib/base/@types/models/dm/condicaoPagamento.js +2 -0
- package/dist/lib/base/@types/models/dm/condicaoPagamento.js.map +1 -0
- package/dist/lib/base/@types/models/dm/produto.js +2 -0
- package/dist/lib/base/@types/models/dm/produto.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/commodities/commodities.js.map +1 -1
- package/dist/lib/base/configs/endpoints.config/compras/compras.js +12 -0
- package/dist/lib/base/configs/endpoints.config/compras/compras.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/localRecepcao.js +10 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/localRecepcao.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/requisicaoAgrupada.js +9 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/requisicaoAgrupada.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/requisicaoCompra.js +11 -0
- package/dist/lib/base/configs/endpoints.config/compras/config/requisicaoCompra.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/businessPartner.js +7 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/businessPartner.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/condicaoPagamento.js +7 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/condicaoPagamento.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/produto.js +8 -0
- package/dist/lib/base/configs/endpoints.config/dm/config/produto.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/dm/dm.js +12 -0
- package/dist/lib/base/configs/endpoints.config/dm/dm.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/endpoints.navigation.js +14 -10
- package/dist/lib/base/configs/endpoints.config/endpoints.navigation.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/modules.navigation.js +10 -8
- package/dist/lib/base/configs/navigation.config/modules.navigation.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/compras/submenu.compras.js +47 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/compras/submenu.compras.js.map +1 -0
- package/dist/lib/base/hooks/dm/businessPartner/useBusinessPartnerList.js +31 -0
- package/dist/lib/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -0
- package/dist/lib/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +31 -0
- package/dist/lib/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -0
- package/dist/lib/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +21 -0
- package/dist/lib/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -0
- package/dist/lib/base/hooks/dm/produto/useProdutoList.js +31 -0
- package/dist/lib/base/hooks/dm/produto/useProdutoList.js.map +1 -0
- package/dist/lib/base/hooks/index.js +7 -1
- package/dist/lib/base/hooks/index.js.map +1 -1
- package/dist/lib/base/index.js +83 -57
- package/dist/lib/base/index.js.map +1 -1
- package/dist/lib/base/services/index.js +38 -18
- package/dist/lib/base/services/index.js.map +1 -1
- package/dist/lib/base/services/modules/compras/index.js +18 -0
- package/dist/lib/base/services/modules/compras/index.js.map +1 -0
- package/dist/lib/base/services/modules/compras/localRecepcao/LocalRecepcaoService.js +37 -0
- package/dist/lib/base/services/modules/compras/localRecepcao/LocalRecepcaoService.js.map +1 -0
- package/dist/lib/base/services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js +30 -0
- package/dist/lib/base/services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js.map +1 -0
- package/dist/lib/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.js +45 -0
- package/dist/lib/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.js.map +1 -0
- package/dist/lib/base/services/modules/dm/businessPartner/BusinessPartnerService.js +15 -0
- package/dist/lib/base/services/modules/dm/businessPartner/BusinessPartnerService.js.map +1 -0
- package/dist/lib/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.js +15 -0
- package/dist/lib/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.js.map +1 -0
- package/dist/lib/base/services/modules/dm/index.js +8 -0
- package/dist/lib/base/services/modules/dm/index.js.map +1 -0
- package/dist/lib/base/services/modules/dm/produto/ProdutoService.js +23 -0
- package/dist/lib/base/services/modules/dm/produto/ProdutoService.js.map +1 -0
- package/dist/lib/base/services/modules/index.js +34 -12
- package/dist/lib/base/services/modules/index.js.map +1 -1
- package/dist/lib/base/store/dm/businesPartner/businessPartnerListStore.js +14 -0
- package/dist/lib/base/store/dm/businesPartner/businessPartnerListStore.js.map +1 -0
- package/dist/lib/base/store/dm/condicaoPagamento/condicaoPagamentoListStore.js +14 -0
- package/dist/lib/base/store/dm/condicaoPagamento/condicaoPagamentoListStore.js.map +1 -0
- package/dist/lib/base/store/dm/produto/produtoListStore.js +14 -0
- package/dist/lib/base/store/dm/produto/produtoListStore.js.map +1 -0
- package/dist/lib/base/utils/components/notifications.js +10 -0
- package/dist/lib/base/utils/components/notifications.js.map +1 -0
- package/dist/lib/base/utils/form/masks.js +26 -0
- package/dist/lib/base/utils/form/masks.js.map +1 -0
- package/dist/lib/base/utils/functions/dateUtils.js +8 -0
- package/dist/lib/base/utils/functions/dateUtils.js.map +1 -0
- package/dist/lib/base/utils/functions/formUtils.js +10 -0
- package/dist/lib/base/utils/functions/formUtils.js.map +1 -0
- package/dist/lib/base/utils/functions/stringUtils.js +22 -0
- package/dist/lib/base/utils/functions/stringUtils.js.map +1 -0
- package/dist/lib/types/@ecme/components/shared/DataTable.d.ts +4 -1
- package/dist/lib/types/base/@types/forms/index.d.ts +4 -1
- package/dist/lib/types/base/@types/models/commodities/pedidoVenda.d.ts +11 -0
- package/dist/lib/types/base/@types/models/dm/businessPartner.d.ts +18 -0
- package/dist/lib/types/base/@types/models/dm/condicaoPagamento.d.ts +6 -0
- package/dist/lib/types/base/@types/models/dm/produto.d.ts +56 -0
- package/dist/lib/types/base/configs/endpoints.config/compras/compras.d.ts +57 -0
- package/dist/lib/types/base/configs/endpoints.config/compras/config/localRecepcao.d.ts +19 -0
- package/dist/lib/types/base/configs/endpoints.config/compras/config/requisicaoAgrupada.d.ts +15 -0
- package/dist/lib/types/base/configs/endpoints.config/compras/config/requisicaoCompra.d.ts +23 -0
- package/dist/lib/types/base/configs/endpoints.config/dm/config/businessPartner.d.ts +7 -0
- package/dist/lib/types/base/configs/endpoints.config/dm/config/condicaoPagamento.d.ts +7 -0
- package/dist/lib/types/base/configs/endpoints.config/dm/config/produto.d.ts +11 -0
- package/dist/lib/types/base/configs/endpoints.config/dm/dm.d.ts +25 -0
- package/dist/lib/types/base/configs/endpoints.config/endpoints.navigation.d.ts +80 -0
- package/dist/lib/types/base/configs/navigation.config/modules.submenu/compras/submenu.compras.d.ts +3 -0
- package/dist/lib/types/base/hooks/dm/businessPartner/useBusinessPartnerList.d.ts +12 -0
- package/dist/lib/types/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.d.ts +12 -0
- package/dist/lib/types/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.d.ts +8 -0
- package/dist/lib/types/base/hooks/dm/produto/useProdutoList.d.ts +12 -0
- package/dist/lib/types/base/hooks/index.d.ts +3 -0
- package/dist/lib/types/base/services/modules/compras/index.d.ts +3 -0
- package/dist/lib/types/base/services/modules/compras/localRecepcao/LocalRecepcaoService.d.ts +5 -0
- package/dist/lib/types/base/services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.d.ts +4 -0
- package/dist/lib/types/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.d.ts +6 -0
- package/dist/lib/types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts +3 -0
- package/dist/lib/types/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.d.ts +3 -0
- package/dist/lib/types/base/services/modules/dm/index.d.ts +2 -0
- package/dist/lib/types/base/services/modules/dm/produto/ProdutoService.d.ts +4 -0
- package/dist/lib/types/base/services/modules/index.d.ts +2 -0
- package/dist/lib/types/base/store/dm/businesPartner/businessPartnerListStore.d.ts +3 -0
- package/dist/lib/types/base/store/dm/condicaoPagamento/condicaoPagamentoListStore.d.ts +3 -0
- package/dist/lib/types/base/store/dm/produto/produtoListStore.d.ts +3 -0
- package/dist/lib/types/base/utils/components/notifications.d.ts +10 -0
- package/dist/lib/types/base/utils/form/masks.d.ts +22 -0
- package/dist/lib/types/base/utils/functions/dateUtils.d.ts +5 -0
- package/dist/lib/types/base/utils/functions/formUtils.d.ts +2 -0
- package/dist/lib/types/base/utils/functions/stringUtils.d.ts +48 -0
- package/package.json +2 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TBusinessPartner = {
|
|
2
|
+
id?: number;
|
|
3
|
+
businessPartner: string;
|
|
4
|
+
nomeCompletoBusinessPartner: string;
|
|
5
|
+
cpf: string;
|
|
6
|
+
cnpj: string;
|
|
7
|
+
cliente: TCliente;
|
|
8
|
+
};
|
|
9
|
+
export type TCliente = {
|
|
10
|
+
id?: number;
|
|
11
|
+
empresasCliente: TEmpresasCliente[];
|
|
12
|
+
};
|
|
13
|
+
export type TEmpresasCliente = {
|
|
14
|
+
id?: number;
|
|
15
|
+
codigo: string;
|
|
16
|
+
nome: string;
|
|
17
|
+
};
|
|
18
|
+
export type TBusinessPartnerFormSchema = TBusinessPartner;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type TProduto = {
|
|
2
|
+
id: number;
|
|
3
|
+
isPrecificadoRacao: boolean;
|
|
4
|
+
codigo: string;
|
|
5
|
+
tipoProduto: string;
|
|
6
|
+
descricao: string;
|
|
7
|
+
dataCriacao: string;
|
|
8
|
+
dataUltimaAlteracao: string;
|
|
9
|
+
marcadoExclusao: boolean;
|
|
10
|
+
pesoBruto: number;
|
|
11
|
+
unidadePeso: string;
|
|
12
|
+
pesoLiquido: number;
|
|
13
|
+
grupoProduto: string;
|
|
14
|
+
unidadeBase: string;
|
|
15
|
+
grupoCategoriaItem: string;
|
|
16
|
+
margem: number;
|
|
17
|
+
centrosProduto: TCentroProduto[];
|
|
18
|
+
unidadesMedida: TUnidadeMedida[];
|
|
19
|
+
};
|
|
20
|
+
export type TCentroProduto = {
|
|
21
|
+
id: number;
|
|
22
|
+
centro: string;
|
|
23
|
+
grupoCompras: string;
|
|
24
|
+
codigoNcm: string;
|
|
25
|
+
locaisArmazenamentoProduto: TLocalArmazenamentoProduto[];
|
|
26
|
+
};
|
|
27
|
+
export type TLocalArmazenamentoProduto = {
|
|
28
|
+
id: number;
|
|
29
|
+
ativo: boolean;
|
|
30
|
+
centro: string;
|
|
31
|
+
localizacaoArmazenamento: string;
|
|
32
|
+
marcadoExclusao: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type TUnidadeMedida = {
|
|
35
|
+
id: number;
|
|
36
|
+
ativo: boolean;
|
|
37
|
+
unidadeAlternativa: string;
|
|
38
|
+
numeradorQuantidade: number;
|
|
39
|
+
denominadorQuantidade: number;
|
|
40
|
+
volumeMaterial: number;
|
|
41
|
+
unidadeVolume: string;
|
|
42
|
+
pesoBruto: number;
|
|
43
|
+
unidadePeso: string;
|
|
44
|
+
numeroItemComercioGlobal: number;
|
|
45
|
+
categoriaNumeroItemComercioGlobal: string;
|
|
46
|
+
comprimentoEspecificoUnidadeProduto: number;
|
|
47
|
+
larguraEspecificaUnidadeProduto: number;
|
|
48
|
+
alturaEspecificaUnidadeProduto: number;
|
|
49
|
+
unidadeMedidaProduto: string;
|
|
50
|
+
unidadeEmbalagemNivelInferior: string;
|
|
51
|
+
volumeRestanteAposAninhamento: number;
|
|
52
|
+
fatorEmpilhamentoMaximo: number;
|
|
53
|
+
capacidadeUso: number;
|
|
54
|
+
unidadeBase: string;
|
|
55
|
+
};
|
|
56
|
+
export type TProdutoFormSchema = TProduto;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const compras: {
|
|
2
|
+
localRecepcao: {
|
|
3
|
+
create: {
|
|
4
|
+
endpoint: string;
|
|
5
|
+
httpMethod: string;
|
|
6
|
+
};
|
|
7
|
+
update: {
|
|
8
|
+
endpoint: string;
|
|
9
|
+
httpMethod: string;
|
|
10
|
+
};
|
|
11
|
+
findMonitor: {
|
|
12
|
+
endpoint: string;
|
|
13
|
+
httpMethod: string;
|
|
14
|
+
};
|
|
15
|
+
findOne: {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
httpMethod: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
requisicaoCompra: {
|
|
21
|
+
create: {
|
|
22
|
+
endpoint: string;
|
|
23
|
+
httpMethod: string;
|
|
24
|
+
};
|
|
25
|
+
update: {
|
|
26
|
+
endpoint: string;
|
|
27
|
+
httpMethod: string;
|
|
28
|
+
};
|
|
29
|
+
findMonitor: {
|
|
30
|
+
endpoint: string;
|
|
31
|
+
httpMethod: string;
|
|
32
|
+
};
|
|
33
|
+
findOne: {
|
|
34
|
+
endpoint: string;
|
|
35
|
+
httpMethod: string;
|
|
36
|
+
};
|
|
37
|
+
executeAcao: {
|
|
38
|
+
endpoint: string;
|
|
39
|
+
httpMethod: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
requisicaoAgrupada: {
|
|
43
|
+
findMonitorItem: {
|
|
44
|
+
endpoint: string;
|
|
45
|
+
httpMethod: string;
|
|
46
|
+
};
|
|
47
|
+
findMonitorRequisicao: {
|
|
48
|
+
endpoint: string;
|
|
49
|
+
httpMethod: string;
|
|
50
|
+
};
|
|
51
|
+
finalizar: {
|
|
52
|
+
endpoint: string;
|
|
53
|
+
httpMethod: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default compras;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const localRecepcao: {
|
|
2
|
+
create: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
httpMethod: string;
|
|
5
|
+
};
|
|
6
|
+
update: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
httpMethod: string;
|
|
9
|
+
};
|
|
10
|
+
findMonitor: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
httpMethod: string;
|
|
13
|
+
};
|
|
14
|
+
findOne: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
httpMethod: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default localRecepcao;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const requisicaoAgrupada: {
|
|
2
|
+
findMonitorItem: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
httpMethod: string;
|
|
5
|
+
};
|
|
6
|
+
findMonitorRequisicao: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
httpMethod: string;
|
|
9
|
+
};
|
|
10
|
+
finalizar: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
httpMethod: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default requisicaoAgrupada;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const requisicaoCompra: {
|
|
2
|
+
create: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
httpMethod: string;
|
|
5
|
+
};
|
|
6
|
+
update: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
httpMethod: string;
|
|
9
|
+
};
|
|
10
|
+
findMonitor: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
httpMethod: string;
|
|
13
|
+
};
|
|
14
|
+
findOne: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
httpMethod: string;
|
|
17
|
+
};
|
|
18
|
+
executeAcao: {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
httpMethod: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default requisicaoCompra;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const dm: {
|
|
2
|
+
businessPartner: {
|
|
3
|
+
find: {
|
|
4
|
+
endpoint: string;
|
|
5
|
+
method: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
condicaoPagamento: {
|
|
9
|
+
find: {
|
|
10
|
+
endpoint: string;
|
|
11
|
+
method: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
produto: {
|
|
15
|
+
find: {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
method: string;
|
|
18
|
+
};
|
|
19
|
+
findProdutoIsPrecificadoRacao: {
|
|
20
|
+
endpoint: string;
|
|
21
|
+
method: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default dm;
|
|
@@ -23,6 +23,30 @@ declare const endpointNavigationConfig: {
|
|
|
23
23
|
findOne: string;
|
|
24
24
|
update: string;
|
|
25
25
|
};
|
|
26
|
+
dm: {
|
|
27
|
+
businessPartner: {
|
|
28
|
+
find: {
|
|
29
|
+
endpoint: string;
|
|
30
|
+
method: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
condicaoPagamento: {
|
|
34
|
+
find: {
|
|
35
|
+
endpoint: string;
|
|
36
|
+
method: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
produto: {
|
|
40
|
+
find: {
|
|
41
|
+
endpoint: string;
|
|
42
|
+
method: string;
|
|
43
|
+
};
|
|
44
|
+
findProdutoIsPrecificadoRacao: {
|
|
45
|
+
endpoint: string;
|
|
46
|
+
method: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
26
50
|
template: {
|
|
27
51
|
example: {
|
|
28
52
|
findOne: {
|
|
@@ -177,5 +201,61 @@ declare const endpointNavigationConfig: {
|
|
|
177
201
|
};
|
|
178
202
|
};
|
|
179
203
|
};
|
|
204
|
+
compras: {
|
|
205
|
+
localRecepcao: {
|
|
206
|
+
create: {
|
|
207
|
+
endpoint: string;
|
|
208
|
+
httpMethod: string;
|
|
209
|
+
};
|
|
210
|
+
update: {
|
|
211
|
+
endpoint: string;
|
|
212
|
+
httpMethod: string;
|
|
213
|
+
};
|
|
214
|
+
findMonitor: {
|
|
215
|
+
endpoint: string;
|
|
216
|
+
httpMethod: string;
|
|
217
|
+
};
|
|
218
|
+
findOne: {
|
|
219
|
+
endpoint: string;
|
|
220
|
+
httpMethod: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
requisicaoCompra: {
|
|
224
|
+
create: {
|
|
225
|
+
endpoint: string;
|
|
226
|
+
httpMethod: string;
|
|
227
|
+
};
|
|
228
|
+
update: {
|
|
229
|
+
endpoint: string;
|
|
230
|
+
httpMethod: string;
|
|
231
|
+
};
|
|
232
|
+
findMonitor: {
|
|
233
|
+
endpoint: string;
|
|
234
|
+
httpMethod: string;
|
|
235
|
+
};
|
|
236
|
+
findOne: {
|
|
237
|
+
endpoint: string;
|
|
238
|
+
httpMethod: string;
|
|
239
|
+
};
|
|
240
|
+
executeAcao: {
|
|
241
|
+
endpoint: string;
|
|
242
|
+
httpMethod: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
requisicaoAgrupada: {
|
|
246
|
+
findMonitorItem: {
|
|
247
|
+
endpoint: string;
|
|
248
|
+
httpMethod: string;
|
|
249
|
+
};
|
|
250
|
+
findMonitorRequisicao: {
|
|
251
|
+
endpoint: string;
|
|
252
|
+
httpMethod: string;
|
|
253
|
+
};
|
|
254
|
+
finalizar: {
|
|
255
|
+
endpoint: string;
|
|
256
|
+
httpMethod: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
180
260
|
};
|
|
181
261
|
export default endpointNavigationConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function useBusinessPartnerList(): {
|
|
2
|
+
data: import("../../..").TQueryResponse<import("../../../@types/models/dm/businessPartner").TBusinessPartner[]> | undefined;
|
|
3
|
+
businessPartnersList: import("../../../@types/models/dm/businessPartner").TBusinessPartner[][];
|
|
4
|
+
businessPartnersListTotal: number;
|
|
5
|
+
error: any;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
tableParams: import("../../..").ITableParams;
|
|
8
|
+
filterParams: import("../../..").IFilterParams;
|
|
9
|
+
mutate: import("swr").KeyedMutator<import("../../..").TQueryResponse<import("../../../@types/models/dm/businessPartner").TBusinessPartner[]>>;
|
|
10
|
+
setTableParams: (payload: import("../../..").ITableParams) => void;
|
|
11
|
+
setFilterParams: (payload: import("../../..").IFilterParams) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function useCondicaoPagamentoList(): {
|
|
2
|
+
data: import("../../..").TQueryResponse<import("../../../@types/models/dm/condicaoPagamento").TCondicaoPagamento[]> | undefined;
|
|
3
|
+
condicoesPagamentosList: import("../../../@types/models/dm/condicaoPagamento").TCondicaoPagamento[][];
|
|
4
|
+
condicoesPagamentosListTotal: number;
|
|
5
|
+
error: any;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
tableParams: import("../../..").ITableParams;
|
|
8
|
+
filterParams: import("../../..").IFilterParams;
|
|
9
|
+
mutate: import("swr").KeyedMutator<import("../../..").TQueryResponse<import("../../../@types/models/dm/condicaoPagamento").TCondicaoPagamento[]>>;
|
|
10
|
+
setTableParams: (payload: import("../../..").ITableParams) => void;
|
|
11
|
+
setFilterParams: (payload: import("../../..").IFilterParams) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function useProdutoIsPrecificadoRacaoList(): {
|
|
2
|
+
data: import("../../..").TQueryResponse<import("../../../@types/models/dm/produto").TProduto[]> | undefined;
|
|
3
|
+
produtosIsPrecificadosRacaoList: import("../../../@types/models/dm/produto").TProduto[][];
|
|
4
|
+
produtosIsPrecificadosRacaoListTotal: number;
|
|
5
|
+
error: any;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
mutate: import("swr").KeyedMutator<import("../../..").TQueryResponse<import("../../../@types/models/dm/produto").TProduto[]>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function useProdutoList(): {
|
|
2
|
+
data: import("../../..").TQueryResponse<import("../../../@types/models/dm/produto").TProduto[]> | undefined;
|
|
3
|
+
produtosList: import("../../../@types/models/dm/produto").TProduto[][];
|
|
4
|
+
produtosListTotal: number;
|
|
5
|
+
error: any;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
tableParams: import("../../..").ITableParams;
|
|
8
|
+
filterParams: import("../../..").IFilterParams;
|
|
9
|
+
mutate: import("swr").KeyedMutator<import("../../..").TQueryResponse<import("../../../@types/models/dm/produto").TProduto[]>>;
|
|
10
|
+
setTableParams: (payload: import("../../..").ITableParams) => void;
|
|
11
|
+
setFilterParams: (payload: import("../../..").IFilterParams) => void;
|
|
12
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
1
|
export { default as useList } from './useList';
|
|
2
|
+
export { default as useProdutoList } from './dm/produto/useProdutoList';
|
|
3
|
+
export { default as useBusinessPartnerList } from './dm/businessPartner/useBusinessPartnerList';
|
|
4
|
+
export { default as useCondicaoPagamentoList } from './dm/condicaoPagamento/useCondicaoPagamentoList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
+
export declare function apiCreateLocalRecepcao(values: any): Promise<any>;
|
|
3
|
+
export declare function apiUpdateLocalRecepcao(values: any): Promise<any>;
|
|
4
|
+
export declare function apiFindMonitorLocalRecepcao(body?: IFilterParams): Promise<TQueryResponse<any>>;
|
|
5
|
+
export declare function apiFindOneLocalRecepcao(id: number): Promise<any>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IFilterParams } from "@base/@types/api";
|
|
2
|
+
export declare function apiFindMonitorRequisicaoAgrupadaItem(body?: IFilterParams): Promise<any>;
|
|
3
|
+
export declare function apiFindMonitorRequisicaoAgrupadaRequisicao(body?: IFilterParams): Promise<any>;
|
|
4
|
+
export declare function apiFinalizaRequisicaoAgrupada(body: any): Promise<any>;
|
package/dist/lib/types/base/services/modules/compras/requisicaoCompra/RequisicaoCompraService.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
+
export declare function apiCreateRequisicaoCompra(values: any): Promise<any>;
|
|
3
|
+
export declare function apiUpdateRequisicaoCompra(values: any): Promise<any>;
|
|
4
|
+
export declare function apiFindMonitorRequisicaoCompra(body?: IFilterParams): Promise<TQueryResponse<any>>;
|
|
5
|
+
export declare function apiFindOneRequisicaoCompra(id: number): Promise<any>;
|
|
6
|
+
export declare function apiExecuteAcao(values: any): Promise<any>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
+
import { TProduto } from "@base/@types/models/dm/produto";
|
|
3
|
+
export declare function apiFindDmProduto(body?: IFilterParams): Promise<TQueryResponse<TProduto[]>>;
|
|
4
|
+
export declare function apiFindDmProdutoIsPrecificadoRacao(): Promise<TQueryResponse<TProduto[]>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TBusinessPartner } from '@base/@types/models/dm/businessPartner';
|
|
2
|
+
import { IListStoreAction, IListStoreState } from '@base/@types/store';
|
|
3
|
+
export declare const useBusinessPartnerListStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IListStoreState<TBusinessPartner> & IListStoreAction<TBusinessPartner>>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TCondicaoPagamento } from '@base/@types/models/dm/condicaoPagamento';
|
|
2
|
+
import { IListStoreAction, IListStoreState } from '@base/@types/store';
|
|
3
|
+
export declare const useCondicaoPagamentoListStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IListStoreState<TCondicaoPagamento> & IListStoreAction<TCondicaoPagamento>>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TProduto } from '@base/@types/models/dm/produto';
|
|
2
|
+
import { IListStoreAction, IListStoreState } from '@base/@types/store';
|
|
3
|
+
export declare const useProdutoListStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IListStoreState<TProduto> & IListStoreAction<TProduto>>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ToastNotificationProps {
|
|
2
|
+
/** Tipo da notificação: 'success', 'warning', 'danger' ou 'info' */
|
|
3
|
+
readonly type: 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
/** Mensagem a ser exibida na notificação */
|
|
5
|
+
readonly mensagem: string;
|
|
6
|
+
/** Duração da notificação em milissegundos (0 para fechar manualmente) */
|
|
7
|
+
readonly duration?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function ToastNotification({ type, mensagem, duration }: ToastNotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const placaVeiculoMaskOptions: {
|
|
2
|
+
prepare: (str: string) => string;
|
|
3
|
+
definitions: {
|
|
4
|
+
A: RegExp;
|
|
5
|
+
'#': RegExp;
|
|
6
|
+
};
|
|
7
|
+
mask: string;
|
|
8
|
+
autofix: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const macAddressMaskDefs: {
|
|
11
|
+
mask: string;
|
|
12
|
+
definitions: {
|
|
13
|
+
'#': RegExp;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const cpfMaskString = "000.000.000-00";
|
|
17
|
+
export declare const cnpjMaskString = "00.000.000/0000-00";
|
|
18
|
+
export declare const emailMaskString = "w@w.w";
|
|
19
|
+
export declare const pisPasepMaskString = "000.00000.00.0";
|
|
20
|
+
export declare const numbersMask: RegExp;
|
|
21
|
+
export declare const alphanumericMask: RegExp;
|
|
22
|
+
export declare const ipMaskString = "000.000.000.00";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Representa uma estrutura genérica de erro que pode ser retornada por APIs ou capturada em blocos try/catch.
|
|
3
|
+
*/
|
|
4
|
+
type ErroGenerico = {
|
|
5
|
+
response?: {
|
|
6
|
+
data?: {
|
|
7
|
+
detail?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
mensagem?: string | {
|
|
12
|
+
detail?: string;
|
|
13
|
+
};
|
|
14
|
+
message?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
data?: {
|
|
17
|
+
message?: string;
|
|
18
|
+
} | string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Extrai uma mensagem de erro legível a partir de um objeto de erro genérico.
|
|
22
|
+
*
|
|
23
|
+
* A função tenta encontrar uma mensagem de erro válida a partir de múltiplas
|
|
24
|
+
* estruturas comuns, como:
|
|
25
|
+
* - `response.data.detail`
|
|
26
|
+
* - `mensagem` (string ou objeto com `detail`)
|
|
27
|
+
* - `message`
|
|
28
|
+
* - `error`
|
|
29
|
+
* - `data` (string ou objeto com `message`)
|
|
30
|
+
*
|
|
31
|
+
* Se nenhuma mensagem válida for encontrada, retorna "Erro Inesperado".
|
|
32
|
+
*
|
|
33
|
+
* @param {ErroGenerico | string} error - Objeto de erro genérico ou uma string diretamente.
|
|
34
|
+
* @returns {string} Uma mensagem de erro sanitizada e legível.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* extrairMensagemErro("Erro direto"); // "Erro direto"
|
|
38
|
+
* @example
|
|
39
|
+
* extrairMensagemErro({ message: "Falha na operação" }); // "Falha na operação"
|
|
40
|
+
* @example
|
|
41
|
+
* extrairMensagemErro({ response: { data: { detail: "Recurso não encontrado" } } }); // "Recurso não encontrado"
|
|
42
|
+
* @example
|
|
43
|
+
* extrairMensagemErro({ data: "Erro simples" }); // "Erro simples"
|
|
44
|
+
* @example
|
|
45
|
+
* extrairMensagemErro({}); // "Erro Inesperado"
|
|
46
|
+
*/
|
|
47
|
+
export declare function extrairMensagemErro(error: ErroGenerico | string): string;
|
|
48
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbe-agro/client-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "Core library for OrbeAgro microfrontend architecture",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.js",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"d3-fetch": "^3.0.1",
|
|
73
73
|
"d3-geo": "^3.1.1",
|
|
74
74
|
"d3-scale": "^4.0.2",
|
|
75
|
+
"date-fns": "^4.1.0",
|
|
75
76
|
"dayjs": "^1.11.13",
|
|
76
77
|
"deepdash-es": "^5.3.9",
|
|
77
78
|
"firebase": "^11.1.0",
|