@s_mart/minha-conta 15.0.2 → 16.0.0
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/api/index.d.ts +30 -0
- package/dist/api/queries.d.ts +92 -0
- package/dist/components/loading/loading.d.ts +4 -0
- package/dist/components/meuPlanoInfo/components/buttonPlanos.d.ts +3 -0
- package/dist/components/meuPlanoInfo/components/detalhes.d.ts +10 -0
- package/dist/components/meuPlanoInfo/components/skeleton.d.ts +1 -0
- package/dist/components/meuPlanoInfo/meuPlanoInfo.d.ts +2 -0
- package/dist/components/meuPlanoInfo/meuPlanoInfo.static.d.ts +2 -0
- package/dist/components/meuPlanoInfo/meuPlanoInfo.types.d.ts +16 -0
- package/dist/components/meuPlanoInfo/useMeuPlanoInfo.d.ts +15 -0
- package/dist/components/planosDialog/contratarRecursos/confirmacaoDialog/confirmacaoDialog.d.ts +5 -0
- package/dist/components/planosDialog/contratarRecursos/confirmacaoDialog/useConfirmacaoDialog.d.ts +15 -0
- package/dist/components/planosDialog/contratarRecursos/contratarRecursos.d.ts +1 -0
- package/dist/components/planosDialog/contratarRecursos/listaRecursos/listaRecursos.d.ts +1 -0
- package/dist/components/planosDialog/contratarRecursos/listaRecursos/listaRecursos.styles.d.ts +5 -0
- package/dist/components/planosDialog/contratarRecursos/planoShowcase/planoShowcase.d.ts +1 -0
- package/dist/components/planosDialog/contratarRecursos/planoShowcase/planoShowcase.styles.d.ts +7 -0
- package/dist/components/planosDialog/contratarRecursos/planoShowcase/usePlanoShowcase.d.ts +7 -0
- package/dist/components/planosDialog/emptyState/emptyState.d.ts +1 -0
- package/dist/components/planosDialog/listagemPlanos/listagemPlanos.d.ts +2 -0
- package/dist/components/planosDialog/listagemPlanos/listagemPlanos.styles.d.ts +5 -0
- package/dist/components/planosDialog/listagemPlanos/listagemPlanos.types.d.ts +4 -0
- package/dist/components/planosDialog/listagemPlanos/plano/plano.d.ts +10 -0
- package/dist/components/planosDialog/listagemPlanos/plano/plano.styles.d.ts +8 -0
- package/dist/components/planosDialog/listagemPlanos/useListagemPlanos.d.ts +12 -0
- package/dist/components/planosDialog/loading/loading.d.ts +1 -0
- package/dist/components/planosDialog/planosDialog.d.ts +2 -0
- package/dist/components/planosDialog/planosDialog.static.d.ts +4 -0
- package/dist/components/planosDialog/planosDialog.types.d.ts +26 -0
- package/dist/components/planosDialog/planosDialogExport.d.ts +2 -0
- package/dist/components/planosDialog/usePlanosDialog.d.ts +15 -0
- package/dist/components/recursosDialog/confirmacaoAdquirirDialog/confirmacaoAdquirirDialog.d.ts +2 -0
- package/dist/components/recursosDialog/confirmacaoAdquirirDialog/confirmacaoAdquirirDialog.types.d.ts +6 -0
- package/dist/components/recursosDialog/confirmacaoRemoverDialog/confirmacaoRemoverDialog.d.ts +2 -0
- package/dist/components/recursosDialog/confirmacaoRemoverDialog/confirmacaoRemoverDialog.types.d.ts +6 -0
- package/dist/components/recursosDialog/emptyState/emptyState.d.ts +1 -0
- package/dist/components/recursosDialog/gifDialog/gifDialog.d.ts +2 -0
- package/dist/components/recursosDialog/gifDialog/gifDialog.styles.d.ts +1 -0
- package/dist/components/recursosDialog/gifDialog/gifDialog.types.d.ts +7 -0
- package/dist/components/recursosDialog/recurso/recurso.d.ts +2 -0
- package/dist/components/recursosDialog/recurso/recurso.styles.d.ts +14 -0
- package/dist/components/recursosDialog/recurso/recurso.types.d.ts +8 -0
- package/dist/components/recursosDialog/recursosDialog.d.ts +2 -0
- package/dist/components/recursosDialog/recursosDialog.types.d.ts +25 -0
- package/dist/components/recursosDialog/recursosDialogExport.d.ts +2 -0
- package/dist/components/recursosDialog/useRecursosDialog.d.ts +17 -0
- package/dist/context/minhaContaProvider.d.ts +99 -0
- package/dist/context/minhaContaQueryProvider.d.ts +2 -0
- package/dist/context/notificationProvider.d.ts +3 -0
- package/dist/context/notificationProvider.types.d.ts +8 -0
- package/dist/helpers/contrateApi/contrateApi.types.d.ts +45 -0
- package/dist/helpers/contrateApi/geralApi.types.d.ts +29 -0
- package/dist/helpers/contrateApi/meusDadosApi.types.d.ts +175 -0
- package/dist/helpers/types.d.ts +3 -0
- package/dist/hooks/useDialog.d.ts +4 -0
- package/dist/hooks/useToken.d.ts +2 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.mjs +3388 -83
- package/dist/index.mjs.map +1 -0
- package/dist/screens/confirmarEmail/api/index.d.ts +7 -0
- package/dist/screens/confirmarEmail/confirmarEmail.d.ts +2 -0
- package/dist/screens/confirmarEmail/confirmarEmail.styles.d.ts +6 -0
- package/dist/screens/confirmarEmail/confirmarEmail.types.d.ts +9 -0
- package/dist/screens/confirmarEmail/useConfirmarEmail.d.ts +2 -0
- package/dist/screens/meuPlano/faturas/alterarEmailCobrancaDialog/alterarEmailCobrancaDialog.d.ts +4 -0
- package/dist/screens/meuPlano/faturas/alterarEmailCobrancaDialog/alterarEmailCobrancaDialog.types.d.ts +8 -0
- package/dist/screens/meuPlano/faturas/alterarEmailCobrancaDialog/useAlterarEmailCobrancaDialog.d.ts +19 -0
- package/dist/screens/meuPlano/faturas/emptyState/emptyState.d.ts +1 -0
- package/dist/screens/meuPlano/faturas/faturas.d.ts +1 -0
- package/dist/screens/meuPlano/faturas/useFaturas.d.ts +32 -0
- package/dist/screens/meuPlano/faturas/useProximaFatura.d.ts +1 -0
- package/dist/screens/meuPlano/meuPlano.d.ts +3 -0
- package/dist/screens/meuPlano/termosDeUso/termosDeUso.d.ts +5 -0
- package/dist/screens/meuPlano/useMeuPlano.d.ts +5 -0
- package/dist/screens/minhaConta/minhaConta.d.ts +2 -0
- package/dist/screens/minhaConta/minhaConta.types.d.ts +19 -0
- package/dist/screens/minhaConta/useMinhaConta.d.ts +6 -0
- package/dist/screens/minhaEmpresa/dadosEmpresa/dadosEmpresa.d.ts +1 -0
- package/dist/screens/minhaEmpresa/dadosEmpresa/dadosEmpresa.styles.d.ts +1 -0
- package/dist/screens/minhaEmpresa/dadosEmpresa/useDadosEmpresa.d.ts +15 -0
- package/dist/screens/minhaEmpresa/dadosEndereco/dadosEndereco.d.ts +1 -0
- package/dist/screens/minhaEmpresa/dadosEndereco/useDadosEndereco.d.ts +10 -0
- package/dist/screens/minhaEmpresa/dadosResponsavel/dadosResponsavel.d.ts +1 -0
- package/dist/screens/minhaEmpresa/header/header.d.ts +1 -0
- package/dist/screens/minhaEmpresa/header/useHeader.d.ts +14 -0
- package/dist/screens/minhaEmpresa/minhaEmpresa.d.ts +3 -0
- package/dist/screens/minhaEmpresa/minhaEmpresa.helpers.d.ts +4 -0
- package/dist/screens/minhaEmpresa/minhaEmpresa.types.d.ts +42 -0
- package/dist/screens/minhaEmpresa/useMinhaEmpresa.d.ts +6 -0
- package/dist/shared/styles.d.ts +7 -0
- package/dist/shared/types.d.ts +4 -0
- package/dist/store/app/app.static.d.ts +2 -0
- package/dist/store/app/app.types.d.ts +9 -0
- package/dist/store/app/useAppStore.d.ts +2 -0
- package/dist/store/minhaConta/createMinhaContaStore.d.ts +2 -0
- package/dist/store/minhaConta/minhaConta.static.d.ts +2 -0
- package/dist/store/minhaConta/minhaConta.types.d.ts +226 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/utils/getPeriodicidadeLabel.d.ts +6 -0
- package/dist/utils/openWhatsapp.d.ts +2 -0
- package/dist/utils/parseError.d.ts +2 -0
- package/package.json +55 -69
- package/dist/index.d.mts +0 -618
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { MinhaContaProps, MinhaContaSlotProps } from '../screens/minhaConta/minhaConta.types';
|
|
3
|
+
import { MinhaContaStore, MinhaContaStoreState } from '../store/minhaConta/minhaConta.types';
|
|
4
|
+
export type MinhaContaProviderProps = Partial<Omit<MinhaContaStoreState, 'ready' | 'usuario'>> & Pick<MinhaContaProps, 'slotProps' | 'api'>;
|
|
5
|
+
export declare function MinhaContaProvider(props: PropsWithChildren<MinhaContaProviderProps>): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* possuí hooks separados para melhor performance em renders
|
|
8
|
+
* Cada hook acessa uma store local do context
|
|
9
|
+
*/
|
|
10
|
+
export declare function useMinhaContaStore<T>(selector: (p: MinhaContaStore) => T): T;
|
|
11
|
+
export declare function useSlotPropsStore<T>(selector: (p: MinhaContaSlotProps) => T): T;
|
|
12
|
+
export declare function useApi(): {
|
|
13
|
+
readonly buscarMeusDados: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarMeusDadosResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarMeusDadosResponse>, any, {}, any>, readonly ["minha-conta", "meus-dados"]>, "queryFn"> & {
|
|
14
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarMeusDadosResponse>, any, {}, any>, readonly ["minha-conta", "meus-dados"], never> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
queryKey: readonly ["minha-conta", "meus-dados"] & {
|
|
17
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarMeusDadosResponse>, any, {}, any>;
|
|
18
|
+
[dataTagErrorSymbol]: Error;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly buscarMeuPlanoRecursos: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').MeuPlanoRecursosResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').MeuPlanoRecursosResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano"]>, "queryFn"> & {
|
|
22
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').MeuPlanoRecursosResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano"], never> | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
queryKey: readonly ["minha-conta", "meu-plano"] & {
|
|
25
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').MeuPlanoRecursosResponse>, any, {}, any>;
|
|
26
|
+
[dataTagErrorSymbol]: Error;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly buscarPlano: (payload: import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoPayload) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoResponse>, any, {}, any>, readonly ["minha-conta", "plano", import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoPayload]>, "queryFn"> & {
|
|
30
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoResponse>, any, {}, any>, readonly ["minha-conta", "plano", import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoPayload], never> | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
queryKey: readonly ["minha-conta", "plano", import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoPayload] & {
|
|
33
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarPlanoResponse>, any, {}, any>;
|
|
34
|
+
[dataTagErrorSymbol]: Error;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly listarCobrancas: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').ItemListarCobrancasResponse[]>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').ItemListarCobrancasResponse[]>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas"]>, "queryFn"> & {
|
|
38
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').ItemListarCobrancasResponse[]>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas"], never> | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
queryKey: readonly ["minha-conta", "meu-plano", "cobrancas"] & {
|
|
41
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').ItemListarCobrancasResponse[]>, any, {}, any>;
|
|
42
|
+
[dataTagErrorSymbol]: Error;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly buscarBoleto: (identificador: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarBoletoResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarBoletoResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas", "boleto", string]>, "queryFn"> & {
|
|
46
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarBoletoResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas", "boleto", string], never> | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
queryKey: readonly ["minha-conta", "meu-plano", "cobrancas", "boleto", string] & {
|
|
49
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarBoletoResponse>, any, {}, any>;
|
|
50
|
+
[dataTagErrorSymbol]: Error;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly buscarNfse: (identificador: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarNfseResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarNfseResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas", "Nfse", string]>, "queryFn"> & {
|
|
54
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarNfseResponse>, any, {}, any>, readonly ["minha-conta", "meu-plano", "cobrancas", "Nfse", string], never> | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
queryKey: readonly ["minha-conta", "meu-plano", "cobrancas", "Nfse", string] & {
|
|
57
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/meusDadosApi.types').BuscarNfseResponse>, any, {}, any>;
|
|
58
|
+
[dataTagErrorSymbol]: Error;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly listarPlanosEGrupos: (payload: import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposPayload) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposResponse>, any, {}, any>, (string | import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposPayload)[]>, "queryFn"> & {
|
|
62
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposResponse>, any, {}, any>, (string | import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposPayload)[], never> | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
queryKey: (string | import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposPayload)[] & {
|
|
65
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/contrateApi.types').BuscarPlanosEGruposResponse>, any, {}, any>;
|
|
66
|
+
[dataTagErrorSymbol]: Error;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly buscarRntrc: (cnpj: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarRntrcResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarRntrcResponse>, any, {}, any>, string[]>, "queryFn"> & {
|
|
70
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarRntrcResponse>, any, {}, any>, string[], never> | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
queryKey: string[] & {
|
|
73
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarRntrcResponse>, any, {}, any>;
|
|
74
|
+
[dataTagErrorSymbol]: Error;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly buscarCep: (cep: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarCepResponse>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarCepResponse>, any, {}, any>, string[]>, "queryFn"> & {
|
|
78
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarCepResponse>, any, {}, any>, string[], never> | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
queryKey: string[] & {
|
|
81
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').BuscarCepResponse>, any, {}, any>;
|
|
82
|
+
[dataTagErrorSymbol]: Error;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly pesquisarCidades: (search: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').PesquisarDadosCidadeResponse[]>, any, {}, any>, Error, import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').PesquisarDadosCidadeResponse[]>, any, {}, any>, string[]>, "queryFn"> & {
|
|
86
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').PesquisarDadosCidadeResponse[]>, any, {}, any>, string[], never> | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
queryKey: string[] & {
|
|
89
|
+
[dataTagSymbol]: import('axios').AxiosResponse<import('../helpers/types').ApiResponse<import('../helpers/contrateApi/geralApi.types').PesquisarDadosCidadeResponse[]>, any, {}, any>;
|
|
90
|
+
[dataTagErrorSymbol]: Error;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
readonly atualizarMeusDados: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('axios').AxiosResponse<any, import('../helpers/contrateApi/meusDadosApi.types').AtualizarMeusDadosBody, {}, any>, Error, import('../helpers/contrateApi/meusDadosApi.types').AtualizarMeusDadosBody, unknown>, "mutationKey">;
|
|
95
|
+
readonly contratarRecurso: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('axios').AxiosResponse<any, any, {}, any>, Error, number, unknown>, "mutationKey">;
|
|
96
|
+
readonly descontratarRecurso: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('axios').AxiosResponse<any, any, {}, any>, Error, number, unknown>, "mutationKey">;
|
|
97
|
+
readonly contratarPlano: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('axios').AxiosResponse<any, import('../helpers/contrateApi/meusDadosApi.types').AlterarPlanoPayload, {}, any>, Error, import('../helpers/contrateApi/meusDadosApi.types').AlterarPlanoPayload, unknown>, "mutationKey">;
|
|
98
|
+
readonly atualizarEmailCobrancas: () => Omit<import('@tanstack/react-query').UseMutationOptions<import('axios').AxiosResponse<any, import('../helpers/contrateApi/meusDadosApi.types').AtualizarEmailsCobrancaBody, {}, any>, Error, import('../helpers/contrateApi/meusDadosApi.types').AtualizarEmailsCobrancaBody, unknown>, "mutationKey">;
|
|
99
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NotificationContextValues, NotificationProviderProps } from './notificationProvider.types';
|
|
2
|
+
export declare const NotificationProvider: ({ onNotification: setNotification, children }: NotificationProviderProps) => import("react").JSX.Element;
|
|
3
|
+
export declare const useNotificationContext: () => NotificationContextValues;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { NotificationCallback, NotificationProps } from '../types';
|
|
3
|
+
export type NotificationContextValues = NotificationCallback & {
|
|
4
|
+
handleErrors(error: unknown): void;
|
|
5
|
+
};
|
|
6
|
+
export type NotificationProviderProps = PropsWithChildren<{
|
|
7
|
+
onNotification(params: NotificationProps): void;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface BuscarPlanosEGruposPayload {
|
|
2
|
+
params: {
|
|
3
|
+
grupo: number | null;
|
|
4
|
+
};
|
|
5
|
+
}
|
|
6
|
+
export interface BuscarPlanosEGruposResponse {
|
|
7
|
+
grupos: Grupo[] | null;
|
|
8
|
+
planos: Planos | null;
|
|
9
|
+
}
|
|
10
|
+
export interface Planos {
|
|
11
|
+
mensais: IPlanoRaw[];
|
|
12
|
+
trimestrais: IPlanoRaw[];
|
|
13
|
+
semestrais: IPlanoRaw[];
|
|
14
|
+
anuais: IPlanoRaw[];
|
|
15
|
+
}
|
|
16
|
+
export interface IPlanoRaw {
|
|
17
|
+
botaoAcao: string;
|
|
18
|
+
codigo: number;
|
|
19
|
+
codigoPlanoValor: number;
|
|
20
|
+
controlaBilhetagem: number;
|
|
21
|
+
descricao: string;
|
|
22
|
+
destaque: number;
|
|
23
|
+
fraseDeEfeito: string;
|
|
24
|
+
fraseTesteGratis: string | null;
|
|
25
|
+
nome: string;
|
|
26
|
+
periodicidade: number;
|
|
27
|
+
quantidadeBilhetagem: number;
|
|
28
|
+
quantidadeTesteGratis: null;
|
|
29
|
+
tipoAssinatura: number;
|
|
30
|
+
tipoDeCobranca: number;
|
|
31
|
+
tipoTesteGratis: number | null;
|
|
32
|
+
valorAdesao: number;
|
|
33
|
+
valorAdesaoPromocional: number;
|
|
34
|
+
valorBilhetagem: number;
|
|
35
|
+
valorPeriodico: number;
|
|
36
|
+
valorPeriodicoPromocional: number;
|
|
37
|
+
}
|
|
38
|
+
interface Grupo {
|
|
39
|
+
botaoAcao: string;
|
|
40
|
+
codigo: number;
|
|
41
|
+
descricao: string;
|
|
42
|
+
imagem: string;
|
|
43
|
+
nome: string;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface BuscarRntrcResponse {
|
|
2
|
+
cpf_cnpj: string;
|
|
3
|
+
data_cadastro: string;
|
|
4
|
+
data_validade: string;
|
|
5
|
+
municipio_uf: string;
|
|
6
|
+
pagamento_eletronico: boolean;
|
|
7
|
+
razao_social: string;
|
|
8
|
+
rntrc: string;
|
|
9
|
+
situacao: string;
|
|
10
|
+
transporte_remunerado: boolean;
|
|
11
|
+
veiculo_pertence_frota: boolean | null;
|
|
12
|
+
}
|
|
13
|
+
export interface BuscarCepResponse {
|
|
14
|
+
bairro: string;
|
|
15
|
+
cep: string;
|
|
16
|
+
cidade: string;
|
|
17
|
+
codigo_ibge: number;
|
|
18
|
+
complemento: string;
|
|
19
|
+
logradouro: string;
|
|
20
|
+
uf: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PesquisarDadosCidadeResponse {
|
|
23
|
+
codigo: number;
|
|
24
|
+
latitude: number;
|
|
25
|
+
longitude: number;
|
|
26
|
+
nome: string;
|
|
27
|
+
siafi: string;
|
|
28
|
+
uf: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export interface BuscarMeusDadosResponse {
|
|
2
|
+
alteracaoDoEmailDaEmpresa: {
|
|
3
|
+
data_expiracao: string;
|
|
4
|
+
novo_email: string;
|
|
5
|
+
} | null;
|
|
6
|
+
alteracaoDoEmailDoResponsavel: {
|
|
7
|
+
data_expiracao: string;
|
|
8
|
+
novo_email: string;
|
|
9
|
+
} | null;
|
|
10
|
+
bairro: string | null;
|
|
11
|
+
cep: string | null;
|
|
12
|
+
cidade: string | null;
|
|
13
|
+
codigoCidade: number | null;
|
|
14
|
+
complemento: string | null;
|
|
15
|
+
cpfCnpj: string | null;
|
|
16
|
+
dataBloqueio: string | null;
|
|
17
|
+
dataContratacao: string | null;
|
|
18
|
+
dataInativacao: string | null;
|
|
19
|
+
email: string | null;
|
|
20
|
+
emailCobranca: string | null;
|
|
21
|
+
emailResponsavel: string | null;
|
|
22
|
+
exibirAbaMeuPlano: boolean | null;
|
|
23
|
+
fone: string | null;
|
|
24
|
+
foneResponsavel: string | null;
|
|
25
|
+
funruralDescricao: string | null;
|
|
26
|
+
funruralTipo: number | null;
|
|
27
|
+
ie: string | null;
|
|
28
|
+
logotipo: {
|
|
29
|
+
conteudo: string;
|
|
30
|
+
mimetype: string;
|
|
31
|
+
nome: string;
|
|
32
|
+
tamanho: number;
|
|
33
|
+
} | null;
|
|
34
|
+
motivoInativacao: string | null;
|
|
35
|
+
nomeFantasia: string | null;
|
|
36
|
+
nomeResponsavel: string | null;
|
|
37
|
+
numero: string | null;
|
|
38
|
+
razaoSocial: string | null;
|
|
39
|
+
regimeTributario: number | null;
|
|
40
|
+
rntrc: string | null;
|
|
41
|
+
rntrcDataVencimento: string | null;
|
|
42
|
+
rua: string | null;
|
|
43
|
+
situacao: number | null;
|
|
44
|
+
tipoPessoa: number | null;
|
|
45
|
+
uf: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface AtualizarMeusDadosBody {
|
|
48
|
+
bairro: string;
|
|
49
|
+
cep: string;
|
|
50
|
+
codigoCidade: number;
|
|
51
|
+
complemento: string;
|
|
52
|
+
email: string;
|
|
53
|
+
emailResponsavel: string;
|
|
54
|
+
fone: string;
|
|
55
|
+
foneResponsavel: string;
|
|
56
|
+
funruralRescricao: string;
|
|
57
|
+
funruralTipo: number;
|
|
58
|
+
ie: string;
|
|
59
|
+
logotipo: {
|
|
60
|
+
conteudo: string;
|
|
61
|
+
nome: string;
|
|
62
|
+
mimetype: string;
|
|
63
|
+
tamanho: number;
|
|
64
|
+
};
|
|
65
|
+
nomeFantasia: string;
|
|
66
|
+
nomeResponsavel: string;
|
|
67
|
+
numero: string;
|
|
68
|
+
razaoSocial: string;
|
|
69
|
+
regimeTributario: number;
|
|
70
|
+
rntrc: string;
|
|
71
|
+
rntrcDataVencimento: string;
|
|
72
|
+
rua: string;
|
|
73
|
+
}
|
|
74
|
+
export interface MeuPlanoRecursosResponse {
|
|
75
|
+
codigoGrupo: number | null;
|
|
76
|
+
codigoPlano: number | null;
|
|
77
|
+
dataContratacao: string | null;
|
|
78
|
+
descricaoPlano: string | null;
|
|
79
|
+
diaVencimentoBoleto: number | null;
|
|
80
|
+
diasCarencia: number | null;
|
|
81
|
+
nomePlano: string | null;
|
|
82
|
+
observacaoPlano: number | null;
|
|
83
|
+
periodicidade: Periodicidade | null;
|
|
84
|
+
qtdeBilhetagem: number | null;
|
|
85
|
+
recursos: IMeuPlanoRecurso[] | null;
|
|
86
|
+
tipoAcesso: number | null;
|
|
87
|
+
tipoCobranca: TipoCobranca | null;
|
|
88
|
+
valor: number | null;
|
|
89
|
+
codigoPlanoEmpresa: number | null;
|
|
90
|
+
valorBilhetagem: number | null;
|
|
91
|
+
bilhetagemExcedenteAtiva: number | null;
|
|
92
|
+
dataInicioUltimaFatura: string | null;
|
|
93
|
+
dataFimUltimaFatura: string | null;
|
|
94
|
+
}
|
|
95
|
+
export interface IMeuPlanoRecurso {
|
|
96
|
+
caminhoImagem: string;
|
|
97
|
+
codigoRecurso: number;
|
|
98
|
+
dataContratacaoRecurso: string;
|
|
99
|
+
dataExclusaoRecurso: string | null;
|
|
100
|
+
dataSolicitacaoExcRecurso: string | null;
|
|
101
|
+
descricaoRecurso: string;
|
|
102
|
+
nomeRecurso: string;
|
|
103
|
+
recursoContratado: boolean;
|
|
104
|
+
slugRecurso: string;
|
|
105
|
+
valorRecurso: number;
|
|
106
|
+
}
|
|
107
|
+
export interface ItemListarCobrancasResponse {
|
|
108
|
+
dataBaixa: string | null;
|
|
109
|
+
dataEmissao: string;
|
|
110
|
+
dataPagamento: string | null;
|
|
111
|
+
dataVencimento: string | null;
|
|
112
|
+
descricao: string | null;
|
|
113
|
+
linkFatura: string;
|
|
114
|
+
formaPagamento: 1 | 3;
|
|
115
|
+
identificador: string;
|
|
116
|
+
nfseEmitida: 1 | 0;
|
|
117
|
+
observacaoInterna: string | null;
|
|
118
|
+
situacao: CobrancaSituacao;
|
|
119
|
+
valor: number;
|
|
120
|
+
}
|
|
121
|
+
export type CobrancaSituacao = 'EMITIDO' | 'LIQUIDADO' | 'BAIXADO' | 'ISENTADO';
|
|
122
|
+
export interface BuscarBoletoResponse {
|
|
123
|
+
boleto: string;
|
|
124
|
+
}
|
|
125
|
+
export interface BuscarNfseResponse {
|
|
126
|
+
danfse?: string;
|
|
127
|
+
link_impressao_danfse: string;
|
|
128
|
+
xml: string;
|
|
129
|
+
}
|
|
130
|
+
export interface BuscarPlanoPayload {
|
|
131
|
+
path: {
|
|
132
|
+
codigo: number;
|
|
133
|
+
};
|
|
134
|
+
params: {
|
|
135
|
+
periodicidade: Periodicidade;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export declare enum TipoCobranca {
|
|
139
|
+
PRE_PAGO = 1,
|
|
140
|
+
POS_PAGO = 2
|
|
141
|
+
}
|
|
142
|
+
export declare enum Periodicidade {
|
|
143
|
+
MENSAL = 0,
|
|
144
|
+
TRIMESTRAL = 1,
|
|
145
|
+
SEMESTRAL = 2,
|
|
146
|
+
ANUAL = 3
|
|
147
|
+
}
|
|
148
|
+
export declare enum TipoAcesso {
|
|
149
|
+
PUBLICO = 0,
|
|
150
|
+
PRIVADO = 1
|
|
151
|
+
}
|
|
152
|
+
export interface BuscarPlanoResponse {
|
|
153
|
+
codigo: number;
|
|
154
|
+
nome: string;
|
|
155
|
+
recursos: IPlanoRecurso[];
|
|
156
|
+
valores: {
|
|
157
|
+
codigoValor: number;
|
|
158
|
+
periodicidade: Periodicidade;
|
|
159
|
+
tipoCobranca: TipoCobranca;
|
|
160
|
+
valor: number;
|
|
161
|
+
}[];
|
|
162
|
+
}
|
|
163
|
+
export interface IPlanoRecurso {
|
|
164
|
+
codigoRecurso: string;
|
|
165
|
+
nomeRecurso: string;
|
|
166
|
+
slugRecurso: string;
|
|
167
|
+
valorRecurso: number;
|
|
168
|
+
}
|
|
169
|
+
export interface AlterarPlanoPayload {
|
|
170
|
+
codigoPlano: number;
|
|
171
|
+
codigoPlanoValor: number;
|
|
172
|
+
}
|
|
173
|
+
export interface AtualizarEmailsCobrancaBody {
|
|
174
|
+
emails: string;
|
|
175
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { ApiMinhaConta } from './api';
|
|
2
|
+
export { MeuPlanoInfo } from './components/meuPlanoInfo/meuPlanoInfo';
|
|
3
|
+
export type { MeuPlanoInfoProps, MeuPlanoInfoSlots } from './components/meuPlanoInfo/meuPlanoInfo.types';
|
|
4
|
+
export type { PlanosDialogProps } from './components/planosDialog/planosDialog.types';
|
|
5
|
+
export { PlanosDialog } from './components/planosDialog/planosDialogExport';
|
|
6
|
+
export type { RecursosDialogProps } from './components/recursosDialog/recursosDialog.types';
|
|
7
|
+
export { RecursosDialog } from './components/recursosDialog/recursosDialogExport';
|
|
8
|
+
export { MinhaContaProvider, type MinhaContaProviderProps, } from './context/minhaContaProvider';
|
|
9
|
+
export { MinhaContaQueryProvider } from './context/minhaContaQueryProvider';
|
|
10
|
+
export { NotificationProvider } from './context/notificationProvider';
|
|
11
|
+
export { ApiConfirmarEmail } from './screens/confirmarEmail/api';
|
|
12
|
+
export { ConfirmarEmail } from './screens/confirmarEmail/confirmarEmail';
|
|
13
|
+
export type { ConfirmarEmailProps } from './screens/confirmarEmail/confirmarEmail.types';
|
|
14
|
+
export { Faturas } from './screens/meuPlano/faturas/faturas';
|
|
15
|
+
export { MeuPlano } from './screens/meuPlano/meuPlano';
|
|
16
|
+
export { MinhaConta } from './screens/minhaConta/minhaConta';
|
|
17
|
+
export type { MinhaContaProps } from './screens/minhaConta/minhaConta.types';
|
|
18
|
+
export { MinhaEmpresa } from './screens/minhaEmpresa/minhaEmpresa';
|