@orbe-agro/client-core 3.3.9 → 3.3.11
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/auth/AuthProvider.js +29 -35
- package/dist/lib/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/lib/@ecme/components/shared/Container.js.map +1 -1
- package/dist/lib/@ecme/views/auth/SignIn/components/SignInForm.js +35 -35
- package/dist/lib/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/lib/base/@types/forms/commodities/index.js +2 -0
- package/dist/lib/base/@types/forms/commodities/index.js.map +1 -0
- package/dist/lib/base/@types/forms/index.js +2 -0
- package/dist/lib/base/@types/forms/index.js.map +1 -0
- package/dist/lib/base/@types/index.js +1 -0
- package/dist/lib/base/@types/index.js.map +1 -1
- package/dist/lib/base/@types/models/commodities/contratoBiodiesel.js +2 -0
- package/dist/lib/base/@types/models/commodities/contratoBiodiesel.js.map +1 -0
- package/dist/lib/base/@types/models/commodities/pedidoVenda.js +2 -0
- package/dist/lib/base/@types/models/commodities/pedidoVenda.js.map +1 -0
- package/dist/lib/base/@types/models/flux/categoria.js +2 -0
- package/dist/lib/base/@types/models/flux/categoria.js.map +1 -0
- package/dist/lib/base/@types/models/flux/formularioBase.js +2 -0
- package/dist/lib/base/@types/models/flux/formularioBase.js.map +1 -0
- package/dist/lib/base/@types/models/flux/grupoAtendimento.js +2 -0
- package/dist/lib/base/@types/models/flux/grupoAtendimento.js.map +1 -0
- package/dist/lib/base/@types/models/flux/processo.js +2 -0
- package/dist/lib/base/@types/models/flux/processo.js.map +1 -0
- package/dist/lib/base/@types/models/flux/subcategoria.js +2 -0
- package/dist/lib/base/@types/models/flux/subcategoria.js.map +1 -0
- package/dist/lib/base/@types/models/flux/tipoProcesso.js +2 -0
- package/dist/lib/base/@types/models/flux/tipoProcesso.js.map +1 -0
- package/dist/lib/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +51 -0
- package/dist/lib/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +46 -0
- package/dist/lib/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/GenericArrayFormSection.js +75 -0
- package/dist/lib/base/components/forms/GenericArrayFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/GenericNumberFormSection.js +49 -0
- package/dist/lib/base/components/forms/GenericNumberFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/GenericStringFormSection.js +44 -0
- package/dist/lib/base/components/forms/GenericStringFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/GenericUploadFormSection.js +48 -0
- package/dist/lib/base/components/forms/GenericUploadFormSection.js.map +1 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +55 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +51 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +51 -0
- package/dist/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/adm/config/users.js +9 -9
- package/dist/lib/base/configs/endpoints.config/adm/config/users.js.map +1 -1
- package/dist/lib/base/configs/endpoints.config/commodities/commodities.js +10 -0
- package/dist/lib/base/configs/endpoints.config/commodities/commodities.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/commodities/config/contratoBiodiesel.js +11 -0
- package/dist/lib/base/configs/endpoints.config/commodities/config/contratoBiodiesel.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/commodities/config/pedidoVenda.js +12 -0
- package/dist/lib/base/configs/endpoints.config/commodities/config/pedidoVenda.js.map +1 -0
- package/dist/lib/base/configs/endpoints.config/endpoints.navigation.js +15 -9
- package/dist/lib/base/configs/endpoints.config/endpoints.navigation.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/commodities/commodities.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/commodities/commodities.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/commodities/config/{pedidoDeVendas.submenu.js → pedidoVenda.submenu.js} +3 -3
- package/dist/lib/base/configs/navigation.config/submenu/commodities/config/pedidoVenda.submenu.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js +5 -5
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js.map +1 -1
- package/dist/lib/base/index.js +50 -38
- package/dist/lib/base/index.js.map +1 -1
- package/dist/lib/base/services/index.js +18 -6
- package/dist/lib/base/services/index.js.map +1 -1
- package/dist/lib/base/services/modules/FluxService.js +303 -0
- package/dist/lib/base/services/modules/FluxService.js.map +1 -0
- package/dist/lib/base/services/modules/ObjectStorageService.js +14 -0
- package/dist/lib/base/services/modules/ObjectStorageService.js.map +1 -0
- package/dist/lib/base/services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.js +44 -0
- package/dist/lib/base/services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.js.map +1 -0
- package/dist/lib/base/services/modules/commodities/contratoBiodiesel/config/FilterParams.js +2 -0
- package/dist/lib/base/services/modules/commodities/contratoBiodiesel/config/FilterParams.js.map +1 -0
- package/dist/lib/base/services/modules/commodities/index.js +15 -0
- package/dist/lib/base/services/modules/commodities/index.js.map +1 -0
- package/dist/lib/base/services/modules/commodities/pedidoVenda/PedidoVendaService.js +44 -0
- package/dist/lib/base/services/modules/commodities/pedidoVenda/PedidoVendaService.js.map +1 -0
- package/dist/lib/base/services/modules/index.js +16 -3
- package/dist/lib/base/services/modules/index.js.map +1 -1
- package/dist/lib/types/@ecme/@types/auth.d.ts +2 -9
- package/dist/lib/types/@ecme/auth/AuthProvider.d.ts +2 -2
- package/dist/lib/types/@ecme/views/auth/SignIn/components/SignInForm.d.ts +1 -1
- package/dist/lib/types/base/@types/forms/commodities/index.d.ts +18 -0
- package/dist/lib/types/base/@types/forms/index.d.ts +12 -0
- package/dist/lib/types/base/@types/index.d.ts +1 -0
- package/dist/lib/types/base/@types/models/commodities/contratoBiodiesel.d.ts +28 -0
- package/dist/lib/types/base/@types/models/commodities/pedidoVenda.d.ts +21 -0
- package/dist/lib/types/base/@types/models/flux/categoria.d.ts +5 -0
- package/dist/lib/types/base/@types/models/flux/formularioBase.d.ts +19 -0
- package/dist/lib/types/base/@types/models/flux/grupoAtendimento.d.ts +5 -0
- package/dist/lib/types/base/@types/models/flux/processo.d.ts +44 -0
- package/dist/lib/types/base/@types/models/flux/subcategoria.d.ts +6 -0
- package/dist/lib/types/base/@types/models/flux/tipoProcesso.d.ts +4 -0
- package/dist/lib/types/base/components/forms/ArraysForms/GenericArrayNumberFormSection.d.ts +10 -0
- package/dist/lib/types/base/components/forms/ArraysForms/GenericArrayStringFormSection.d.ts +10 -0
- package/dist/lib/types/base/components/forms/GenericArrayFormSection.d.ts +21 -0
- package/dist/lib/types/base/components/forms/GenericNumberFormSection.d.ts +9 -0
- package/dist/lib/types/base/components/forms/GenericStringFormSection.d.ts +9 -0
- package/dist/lib/types/base/components/forms/GenericUploadFormSection.d.ts +8 -0
- package/dist/lib/types/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.d.ts +9 -0
- package/dist/lib/types/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.d.ts +9 -0
- package/dist/lib/types/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.d.ts +9 -0
- package/dist/lib/types/base/configs/endpoints.config/commodities/commodities.d.ts +51 -0
- package/dist/lib/types/base/configs/endpoints.config/commodities/config/contratoBiodiesel.d.ts +23 -0
- package/dist/lib/types/base/configs/endpoints.config/commodities/config/pedidoVenda.d.ts +27 -0
- package/dist/lib/types/base/configs/endpoints.config/endpoints.navigation.d.ts +108 -0
- package/dist/lib/types/base/configs/navigation.config/submenu/commodities/config/pedidoVenda.submenu.d.ts +3 -0
- package/dist/lib/types/base/services/modules/FluxService.d.ts +46 -0
- package/dist/lib/types/base/services/modules/ObjectStorageService.d.ts +1 -0
- package/dist/lib/types/base/services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.d.ts +7 -0
- package/dist/lib/types/base/services/modules/commodities/contratoBiodiesel/config/FilterParams.d.ts +7 -0
- package/dist/lib/types/base/services/modules/commodities/index.d.ts +2 -0
- package/dist/lib/types/base/services/modules/commodities/pedidoVenda/PedidoVendaService.d.ts +7 -0
- package/dist/lib/types/base/services/modules/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/commodities/config/pedidoDeVendas.submenu.js.map +0 -1
- package/dist/lib/types/base/configs/navigation.config/submenu/commodities/config/pedidoDeVendas.submenu.d.ts +0 -3
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { apiGetRoles as
|
|
1
|
+
import { apiGetRoles as d, apiGetUsers as t } from "./AdmService.js";
|
|
2
|
+
import "./commodities/index.js";
|
|
3
|
+
import { apiAddCommoditiesContratoBiodiesel as m, apiDeleteCommoditiesContratoBiodiesel as p, apiFindMonitorCommoditiesContratoBiodiesel as s, apiGetCommoditiesContratoBiodiesel as r, apiUpdateCommoditiesContratoBiodiesel as C } from "./commodities/contratoBiodiesel/ContratoBiodieselService.js";
|
|
4
|
+
import { apiAddCommoditiesPedidoVenda as l, apiDeleteCommoditiesPedidoVenda as B, apiFindMonitorCommoditiesPedidoVenda as P, apiGetCommoditiesPedidoVenda as V, apiUpdateCommoditiesPedidoVenda as G } from "./commodities/pedidoVenda/PedidoVendaService.js";
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
m as apiAddCommoditiesContratoBiodiesel,
|
|
7
|
+
l as apiAddCommoditiesPedidoVenda,
|
|
8
|
+
p as apiDeleteCommoditiesContratoBiodiesel,
|
|
9
|
+
B as apiDeleteCommoditiesPedidoVenda,
|
|
10
|
+
s as apiFindMonitorCommoditiesContratoBiodiesel,
|
|
11
|
+
P as apiFindMonitorCommoditiesPedidoVenda,
|
|
12
|
+
r as apiGetCommoditiesContratoBiodiesel,
|
|
13
|
+
V as apiGetCommoditiesPedidoVenda,
|
|
14
|
+
d as apiGetRoles,
|
|
15
|
+
t as apiGetUsers,
|
|
16
|
+
C as apiUpdateCommoditiesContratoBiodiesel,
|
|
17
|
+
G as apiUpdateCommoditiesPedidoVenda
|
|
5
18
|
};
|
|
6
19
|
//# 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":";;;;"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
export type SignInCredential = {
|
|
2
|
-
|
|
2
|
+
username: string;
|
|
3
3
|
password: string;
|
|
4
4
|
};
|
|
5
5
|
export type SignInResponse = {
|
|
6
|
-
|
|
7
|
-
user: {
|
|
8
|
-
userId: string;
|
|
9
|
-
userName: string;
|
|
10
|
-
authority: string[];
|
|
11
|
-
avatar: string;
|
|
12
|
-
email: string;
|
|
13
|
-
};
|
|
6
|
+
jwtToken: string;
|
|
14
7
|
};
|
|
15
8
|
export type SignUpResponse = SignInResponse;
|
|
16
9
|
export type SignUpCredential = {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type { Control, FieldErrors, FieldValues, UseFormGetValues, UseFormSetValue } from 'react-hook-form';
|
|
3
|
+
export interface IFormSectionBaseProps<T extends FieldValues> {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
errors: FieldErrors<T>;
|
|
6
|
+
getValues?: UseFormGetValues<T>;
|
|
7
|
+
setValue?: UseFormSetValue<T>;
|
|
8
|
+
setValueDocumentoVenda?: string;
|
|
9
|
+
valueVendedor?: string;
|
|
10
|
+
setValueVendedor?: (value: string) => void;
|
|
11
|
+
labelQuantidade_ValorUnitario?: (value: string) => void;
|
|
12
|
+
labelConversaoQuantidade?: Dispatch<SetStateAction<number | null>>;
|
|
13
|
+
labelConversaoValorUnitario?: Dispatch<SetStateAction<number | null>>;
|
|
14
|
+
valueQuantidade?: number;
|
|
15
|
+
setValueQuantidade?: Dispatch<SetStateAction<number | null>>;
|
|
16
|
+
valueValorUnitario?: number;
|
|
17
|
+
setValueValorUnitario?: Dispatch<SetStateAction<number | null>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Control, FieldErrors, FieldValues, UseFormGetValues, UseFormSetValue } from 'react-hook-form';
|
|
2
|
+
export interface IFormSectionBaseProps<T extends FieldValues> {
|
|
3
|
+
control: Control<T>;
|
|
4
|
+
errors: FieldErrors<T>;
|
|
5
|
+
getValues?: UseFormGetValues<T>;
|
|
6
|
+
setValue?: UseFormSetValue<T>;
|
|
7
|
+
isView?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
nameCampoStringArray?: string[];
|
|
11
|
+
nameCampoNumberArray?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TUser } from "../user";
|
|
2
|
+
export type TContratoBiodieselColumnDef = {
|
|
3
|
+
id: string;
|
|
4
|
+
dataCriacao: string;
|
|
5
|
+
usuarioCriacao: TUser;
|
|
6
|
+
};
|
|
7
|
+
export type TContratoBiodiesel = {
|
|
8
|
+
id?: number;
|
|
9
|
+
usuarioCriacao?: string;
|
|
10
|
+
valorUnitario: number;
|
|
11
|
+
valorTotal: number;
|
|
12
|
+
quantidade: number;
|
|
13
|
+
quantidadeConvertida: number;
|
|
14
|
+
valorUnitarioConvertido: number;
|
|
15
|
+
formaPagamento: string;
|
|
16
|
+
organizacaoVenda: number;
|
|
17
|
+
centro: number;
|
|
18
|
+
incoterns: number;
|
|
19
|
+
produto: number;
|
|
20
|
+
condicaoPagamento: number;
|
|
21
|
+
clienteBiodieselLista: TClienteBiodieselList[];
|
|
22
|
+
};
|
|
23
|
+
export type TClienteBiodieselList = {
|
|
24
|
+
id?: number;
|
|
25
|
+
cliente: number;
|
|
26
|
+
setorAtividade: number;
|
|
27
|
+
canalDistribuicao: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TUser } from "../user";
|
|
2
|
+
export type TPedidoVendaColumnDef = {
|
|
3
|
+
id: string;
|
|
4
|
+
dataCriacao: string;
|
|
5
|
+
usuarioCriacao: TUser;
|
|
6
|
+
};
|
|
7
|
+
export type TPedidoVenda = {
|
|
8
|
+
id?: number;
|
|
9
|
+
usuarioCriacao?: string;
|
|
10
|
+
justificativa: string;
|
|
11
|
+
formaPagamento: string;
|
|
12
|
+
canalDistribuicao: number;
|
|
13
|
+
setorAtividade: number;
|
|
14
|
+
escritorioVenda: number;
|
|
15
|
+
fornecedor: number;
|
|
16
|
+
cliente: number;
|
|
17
|
+
condicaoPagamento: number;
|
|
18
|
+
produto: number;
|
|
19
|
+
incoterms: number;
|
|
20
|
+
centro: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TFormularioBase = {
|
|
2
|
+
id?: string;
|
|
3
|
+
nomeFormulario: string;
|
|
4
|
+
subcategoria: number;
|
|
5
|
+
descricaoFormulario: string;
|
|
6
|
+
camposFormulario: TCampoFormularioBase[];
|
|
7
|
+
fluxosFormulario: TFluxoFormularioBase[];
|
|
8
|
+
};
|
|
9
|
+
export type TCampoFormularioBase = {
|
|
10
|
+
id: number;
|
|
11
|
+
nomeCampo: string;
|
|
12
|
+
tipoCampo: string;
|
|
13
|
+
obrigatorio: boolean;
|
|
14
|
+
campoPrincipal: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type TFluxoFormularioBase = {
|
|
17
|
+
nomeFluxo: string;
|
|
18
|
+
grupoAtendimento: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type TProcesso = {
|
|
2
|
+
id?: string;
|
|
3
|
+
subcategoria: number;
|
|
4
|
+
descricaoProcesso: string;
|
|
5
|
+
observacaoProcesso?: string;
|
|
6
|
+
dataCriacao?: number;
|
|
7
|
+
statusDoProcesso?: string;
|
|
8
|
+
usuarioSolicitante?: string;
|
|
9
|
+
usuarioAtendimento?: string;
|
|
10
|
+
formularioProcesso: TFormularioProcesso[];
|
|
11
|
+
anexoProcesso?: TAnexoProcesso[];
|
|
12
|
+
historicoProcesso?: THistoricoProcesso[];
|
|
13
|
+
};
|
|
14
|
+
export type TActionProcesso = {
|
|
15
|
+
idProcesso: number;
|
|
16
|
+
idUsuario?: number;
|
|
17
|
+
mensagemInteracao: string;
|
|
18
|
+
};
|
|
19
|
+
export type TAnexoProcesso = {
|
|
20
|
+
id?: string;
|
|
21
|
+
nomeArquivo: string;
|
|
22
|
+
tipoArquivo: string;
|
|
23
|
+
arquivo: string;
|
|
24
|
+
dataAnexo?: string;
|
|
25
|
+
tamanhoArquivo?: number;
|
|
26
|
+
};
|
|
27
|
+
export type TFormularioProcesso = {
|
|
28
|
+
id?: string;
|
|
29
|
+
nomeCampo: string;
|
|
30
|
+
valorCampo: string;
|
|
31
|
+
};
|
|
32
|
+
export type THistoricoProcesso = {
|
|
33
|
+
id?: string;
|
|
34
|
+
usuario: string;
|
|
35
|
+
descricaoHistorico?: string;
|
|
36
|
+
mensagemInteracao?: string;
|
|
37
|
+
tempo?: string;
|
|
38
|
+
dataCriacao?: string;
|
|
39
|
+
username?: string;
|
|
40
|
+
};
|
|
41
|
+
export type TUpdateProcesso = {
|
|
42
|
+
id: number;
|
|
43
|
+
anexoProcesso?: TAnexoProcesso[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
index: number;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
nameNumberArray: Path<T>;
|
|
8
|
+
};
|
|
9
|
+
declare function GenericArrayNumberFormSection<T extends FieldValues>({ control, errors, isView, index, label, placeholder, nameNumberArray }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default GenericArrayNumberFormSection;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
index: number;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
nameStringArray: Path<T>;
|
|
8
|
+
};
|
|
9
|
+
declare function GenericArrayStringFormSection<T extends FieldValues>({ control, errors, isView, index, label, placeholder, nameStringArray, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default GenericArrayStringFormSection;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { ArrayPath, FieldArray, FieldValues } from 'react-hook-form';
|
|
3
|
+
type OptionType<L = string, V = unknown> = {
|
|
4
|
+
label: L;
|
|
5
|
+
value: V;
|
|
6
|
+
};
|
|
7
|
+
type SelectConfig<L = string, V = unknown> = {
|
|
8
|
+
campo: string;
|
|
9
|
+
valueMapper: (item: unknown) => V;
|
|
10
|
+
getOptionLabel: (option: OptionType<L, V>) => string;
|
|
11
|
+
};
|
|
12
|
+
type GeneralFormSectionProps<T extends FieldValues, K extends ArrayPath<T>> = IFormSectionBaseProps<T> & {
|
|
13
|
+
nameArray: K;
|
|
14
|
+
defaultAppendItem: FieldArray<T, K>;
|
|
15
|
+
nameCampoStringArray: string[];
|
|
16
|
+
nameCampoNumberArray: string[];
|
|
17
|
+
nameCampoSelectArray?: string[];
|
|
18
|
+
selectConfigs?: SelectConfig[];
|
|
19
|
+
};
|
|
20
|
+
declare function GenericArrayFormSection<T extends FieldValues, K extends ArrayPath<T>>({ control, errors, isView, nameArray, nameCampoStringArray, nameCampoNumberArray, defaultAppendItem, }: GeneralFormSectionProps<T, K>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default GenericArrayFormSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
};
|
|
8
|
+
declare function GenericNumberFormSection<T extends FieldValues>({ control, errors, isView, name, label, placeholder, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GenericNumberFormSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
};
|
|
8
|
+
declare function GenericStringFormSection<T extends FieldValues>({ control, errors, isView, name, label, placeholder, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GenericStringFormSection;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
declare function GenericUploadFormSection<T extends FieldValues>({ control, errors, name, label, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default GenericUploadFormSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function GenericNumberFormSectionPercentage<T extends FieldValues>({ control, errors, isView, name, label, placeholder, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GenericNumberFormSectionPercentage;
|
package/dist/lib/types/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
};
|
|
8
|
+
declare function GenericNumberFormSectionPrice<T extends FieldValues>({ control, errors, isView, name, label, placeholder, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GenericNumberFormSectionPrice;
|
package/dist/lib/types/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFormSectionBaseProps } from '@base/@types/forms';
|
|
2
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
};
|
|
8
|
+
declare function GenericNumberFormSectionWeight<T extends FieldValues>({ control, errors, isView, name, label, placeholder, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GenericNumberFormSectionWeight;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const commodities: {
|
|
2
|
+
pedidoVenda: {
|
|
3
|
+
findOne: {
|
|
4
|
+
endpoint: string;
|
|
5
|
+
method: string;
|
|
6
|
+
};
|
|
7
|
+
add: {
|
|
8
|
+
endpoint: string;
|
|
9
|
+
method: string;
|
|
10
|
+
};
|
|
11
|
+
update: {
|
|
12
|
+
endpoint: string;
|
|
13
|
+
method: string;
|
|
14
|
+
};
|
|
15
|
+
delete: {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
method: string;
|
|
18
|
+
};
|
|
19
|
+
findQuantityOrders: {
|
|
20
|
+
endpoint: string;
|
|
21
|
+
method: string;
|
|
22
|
+
};
|
|
23
|
+
findMonitor: {
|
|
24
|
+
endpoint: string;
|
|
25
|
+
method: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
contratoBiodiesel: {
|
|
29
|
+
findOne: {
|
|
30
|
+
endpoint: string;
|
|
31
|
+
method: string;
|
|
32
|
+
};
|
|
33
|
+
add: {
|
|
34
|
+
endpoint: string;
|
|
35
|
+
method: string;
|
|
36
|
+
};
|
|
37
|
+
update: {
|
|
38
|
+
endpoint: string;
|
|
39
|
+
method: string;
|
|
40
|
+
};
|
|
41
|
+
delete: {
|
|
42
|
+
endpoint: string;
|
|
43
|
+
method: string;
|
|
44
|
+
};
|
|
45
|
+
findMonitor: {
|
|
46
|
+
endpoint: string;
|
|
47
|
+
method: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default commodities;
|
package/dist/lib/types/base/configs/endpoints.config/commodities/config/contratoBiodiesel.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const contratoBiodiesel: {
|
|
2
|
+
findOne: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
method: string;
|
|
5
|
+
};
|
|
6
|
+
add: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
update: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
method: string;
|
|
13
|
+
};
|
|
14
|
+
delete: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
method: string;
|
|
17
|
+
};
|
|
18
|
+
findMonitor: {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
method: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default contratoBiodiesel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const pedidoVenda: {
|
|
2
|
+
findOne: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
method: string;
|
|
5
|
+
};
|
|
6
|
+
add: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
update: {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
method: string;
|
|
13
|
+
};
|
|
14
|
+
delete: {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
method: string;
|
|
17
|
+
};
|
|
18
|
+
findQuantityOrders: {
|
|
19
|
+
endpoint: string;
|
|
20
|
+
method: string;
|
|
21
|
+
};
|
|
22
|
+
findMonitor: {
|
|
23
|
+
endpoint: string;
|
|
24
|
+
method: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default pedidoVenda;
|
|
@@ -69,5 +69,113 @@ declare const endpointNavigationConfig: {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
+
flux: {
|
|
73
|
+
tipoProcesso: {
|
|
74
|
+
add: string;
|
|
75
|
+
findAll: string;
|
|
76
|
+
findOne: string;
|
|
77
|
+
update: string;
|
|
78
|
+
delete: string;
|
|
79
|
+
};
|
|
80
|
+
categoria: {
|
|
81
|
+
add: string;
|
|
82
|
+
findAll: string;
|
|
83
|
+
findOne: string;
|
|
84
|
+
update: string;
|
|
85
|
+
delete: string;
|
|
86
|
+
findCategoriaByTipoProcesso: string;
|
|
87
|
+
};
|
|
88
|
+
subcategoria: {
|
|
89
|
+
add: string;
|
|
90
|
+
findAll: string;
|
|
91
|
+
findOne: string;
|
|
92
|
+
update: string;
|
|
93
|
+
delete: string;
|
|
94
|
+
findSubcategoriaByCategoria: string;
|
|
95
|
+
};
|
|
96
|
+
grupoAtendimento: {
|
|
97
|
+
add: string;
|
|
98
|
+
findAll: string;
|
|
99
|
+
findOne: string;
|
|
100
|
+
update: string;
|
|
101
|
+
delete: string;
|
|
102
|
+
};
|
|
103
|
+
formularioBase: {
|
|
104
|
+
add: string;
|
|
105
|
+
findAll: string;
|
|
106
|
+
findOne: string;
|
|
107
|
+
update: string;
|
|
108
|
+
delete: string;
|
|
109
|
+
findOneBySubcategoria: string;
|
|
110
|
+
};
|
|
111
|
+
processo: {
|
|
112
|
+
add: string;
|
|
113
|
+
findAll: string;
|
|
114
|
+
findOne: string;
|
|
115
|
+
update: string;
|
|
116
|
+
aceitar: string;
|
|
117
|
+
concluir: string;
|
|
118
|
+
cancelar: string;
|
|
119
|
+
transferir: string;
|
|
120
|
+
transferirSolicitante: string;
|
|
121
|
+
transferirAtendente: string;
|
|
122
|
+
adicionarHistorico: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
objectStorage: {
|
|
126
|
+
minio: {
|
|
127
|
+
download: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
commodities: {
|
|
131
|
+
pedidoVenda: {
|
|
132
|
+
findOne: {
|
|
133
|
+
endpoint: string;
|
|
134
|
+
method: string;
|
|
135
|
+
};
|
|
136
|
+
add: {
|
|
137
|
+
endpoint: string;
|
|
138
|
+
method: string;
|
|
139
|
+
};
|
|
140
|
+
update: {
|
|
141
|
+
endpoint: string;
|
|
142
|
+
method: string;
|
|
143
|
+
};
|
|
144
|
+
delete: {
|
|
145
|
+
endpoint: string;
|
|
146
|
+
method: string;
|
|
147
|
+
};
|
|
148
|
+
findQuantityOrders: {
|
|
149
|
+
endpoint: string;
|
|
150
|
+
method: string;
|
|
151
|
+
};
|
|
152
|
+
findMonitor: {
|
|
153
|
+
endpoint: string;
|
|
154
|
+
method: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
contratoBiodiesel: {
|
|
158
|
+
findOne: {
|
|
159
|
+
endpoint: string;
|
|
160
|
+
method: string;
|
|
161
|
+
};
|
|
162
|
+
add: {
|
|
163
|
+
endpoint: string;
|
|
164
|
+
method: string;
|
|
165
|
+
};
|
|
166
|
+
update: {
|
|
167
|
+
endpoint: string;
|
|
168
|
+
method: string;
|
|
169
|
+
};
|
|
170
|
+
delete: {
|
|
171
|
+
endpoint: string;
|
|
172
|
+
method: string;
|
|
173
|
+
};
|
|
174
|
+
findMonitor: {
|
|
175
|
+
endpoint: string;
|
|
176
|
+
method: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
72
180
|
};
|
|
73
181
|
export default endpointNavigationConfig;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
+
import { TTipoProcesso } from "@base/@types/models/flux/tipoProcesso";
|
|
3
|
+
import { TGrupoAtendimento } from "@base/@types/models/flux/grupoAtendimento";
|
|
4
|
+
import { TCategoria } from "@base/@types/models/flux/categoria";
|
|
5
|
+
import { TFormularioBase } from "@base/@types/models/flux/formularioBase";
|
|
6
|
+
import { TActionProcesso, TProcesso, TUpdateProcesso } from "@base/@types/models/flux/processo";
|
|
7
|
+
import { TSubcategoria } from "@base/@types/models/flux/subcategoria";
|
|
8
|
+
export declare function apiGetTipoProcesso(body?: IFilterParams): Promise<TQueryResponse<TTipoProcesso>>;
|
|
9
|
+
export declare function apiCreateTipoProcesso(data?: TTipoProcesso): Promise<TQueryResponse<TTipoProcesso>>;
|
|
10
|
+
export declare function apiUpdateTipoProcesso(data?: TTipoProcesso): Promise<TQueryResponse<TTipoProcesso>>;
|
|
11
|
+
export declare function apiFindOneTipoProcesso(id: string): Promise<TTipoProcesso>;
|
|
12
|
+
export declare function apiDeleteTipoProcesso(id: string): Promise<TTipoProcesso>;
|
|
13
|
+
export declare function apiGetGrupoAtendimento(body?: IFilterParams): Promise<TQueryResponse<TGrupoAtendimento>>;
|
|
14
|
+
export declare function apiCreateGrupoAtendimento(data?: TGrupoAtendimento): Promise<TQueryResponse<TGrupoAtendimento>>;
|
|
15
|
+
export declare function apiUpdateGrupoAtendimento(data?: TGrupoAtendimento): Promise<TQueryResponse<TGrupoAtendimento>>;
|
|
16
|
+
export declare function apiFindOneGrupoAtendimento(id: string): Promise<TGrupoAtendimento>;
|
|
17
|
+
export declare function apiDeleteGrupoAtendimento(id: string): Promise<TGrupoAtendimento>;
|
|
18
|
+
export declare function apiGetCategoria(body?: IFilterParams): Promise<TQueryResponse<TCategoria>>;
|
|
19
|
+
export declare function apiCreateCategoria(data?: TCategoria): Promise<TQueryResponse<TCategoria>>;
|
|
20
|
+
export declare function apiUpdateCategoria(data?: TCategoria): Promise<TQueryResponse<TCategoria>>;
|
|
21
|
+
export declare function apiFindOneCategoria(id: string): Promise<TCategoria>;
|
|
22
|
+
export declare function apiDeleteCategoria(id: string): Promise<TCategoria>;
|
|
23
|
+
export declare function apiFindCategoriaByTipoProcesso(idTipoProcesso: number): Promise<TCategoria[]>;
|
|
24
|
+
export declare function apiGetSubcategoria(body?: IFilterParams): Promise<TQueryResponse<TSubcategoria>>;
|
|
25
|
+
export declare function apiCreateSubcategoria(data?: TSubcategoria): Promise<TQueryResponse<TSubcategoria>>;
|
|
26
|
+
export declare function apiUpdateSubcategoria(data?: TSubcategoria): Promise<TQueryResponse<TSubcategoria>>;
|
|
27
|
+
export declare function apiFindSubategoriaByCategoria(idCategoria: number): Promise<TSubcategoria[]>;
|
|
28
|
+
export declare function apiFindOneSubcategoria(id: string): Promise<TSubcategoria>;
|
|
29
|
+
export declare function apiDeleteSubcategoria(id: string): Promise<TSubcategoria>;
|
|
30
|
+
export declare function apiGetFormularioBase(body?: IFilterParams): Promise<TQueryResponse<TFormularioBase>>;
|
|
31
|
+
export declare function apiCreateFormularioBase(data?: TFormularioBase): Promise<TQueryResponse<TFormularioBase>>;
|
|
32
|
+
export declare function apiUpdateFormularioBase(data?: TFormularioBase): Promise<TQueryResponse<TFormularioBase>>;
|
|
33
|
+
export declare function apiFindOneFormularioBaseBySubcategoria(idSubcategoria: number): Promise<TFormularioBase[]>;
|
|
34
|
+
export declare function apiFindOneFormularioBase(id: string): Promise<TFormularioBase>;
|
|
35
|
+
export declare function apiDeleteFormularioBase(id: string): Promise<TFormularioBase>;
|
|
36
|
+
export declare function apiGetProcesso(body?: IFilterParams): Promise<TQueryResponse<TProcesso>>;
|
|
37
|
+
export declare function apiCreateProcesso(data?: TProcesso): Promise<TQueryResponse<TProcesso>>;
|
|
38
|
+
export declare function apiUpdateProcesso(data?: TUpdateProcesso): Promise<TQueryResponse<TProcesso>>;
|
|
39
|
+
export declare function apiFindOneProcesso(id: string): Promise<TProcesso>;
|
|
40
|
+
export declare function apiAceitarProcesso(id: number): Promise<TProcesso>;
|
|
41
|
+
export declare function apiConcluirProcesso(body?: TActionProcesso): Promise<TProcesso>;
|
|
42
|
+
export declare function apiCancelarProcesso(body?: TActionProcesso): Promise<TProcesso>;
|
|
43
|
+
export declare function apiTransferirProcesso(body?: TActionProcesso): Promise<TProcesso>;
|
|
44
|
+
export declare function apiTransferirSolicitante(body?: TActionProcesso): Promise<TProcesso>;
|
|
45
|
+
export declare function apiTransferirAtendente(body?: TActionProcesso): Promise<TProcesso>;
|
|
46
|
+
export declare function apiAdicionarHistorico(body?: TActionProcesso): Promise<TProcesso>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function apiObjectStorageDownload(fileName: string): Promise<any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
2
|
+
import { TContratoBiodiesel } from "@base/@types/models/commodities/contratoBiodiesel";
|
|
3
|
+
export declare function apiGetCommoditiesContratoBiodiesel(id: string): Promise<TContratoBiodiesel>;
|
|
4
|
+
export declare function apiAddCommoditiesContratoBiodiesel(body: TContratoBiodiesel): Promise<TQueryResponse<TContratoBiodiesel>>;
|
|
5
|
+
export declare function apiUpdateCommoditiesContratoBiodiesel(body: TContratoBiodiesel): Promise<TQueryResponse<TContratoBiodiesel>>;
|
|
6
|
+
export declare function apiDeleteCommoditiesContratoBiodiesel(id: string): Promise<TQueryResponse<TContratoBiodiesel>>;
|
|
7
|
+
export declare function apiFindMonitorCommoditiesContratoBiodiesel(body?: IFilterParams): Promise<TQueryResponse<TContratoBiodiesel>>;
|