@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
package/dist/index.d.mts
DELETED
|
@@ -1,618 +0,0 @@
|
|
|
1
|
-
import * as axios from 'axios';
|
|
2
|
-
import { AxiosInstance } from 'axios';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as react from 'react';
|
|
5
|
-
import { MouseEventHandler, PropsWithChildren, ReactElement } from 'react';
|
|
6
|
-
import { ButtonProps, GridSize } from '@mui/material';
|
|
7
|
-
import { TextFieldProps } from '@s_mart/form';
|
|
8
|
-
|
|
9
|
-
interface BuscarPlanosEGruposPayload {
|
|
10
|
-
params: {
|
|
11
|
-
grupo: number | null;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface BuscarPlanosEGruposResponse {
|
|
15
|
-
grupos: Grupo[] | null;
|
|
16
|
-
planos: Planos | null;
|
|
17
|
-
}
|
|
18
|
-
interface Planos {
|
|
19
|
-
mensais: IPlanoRaw[];
|
|
20
|
-
trimestrais: IPlanoRaw[];
|
|
21
|
-
semestrais: IPlanoRaw[];
|
|
22
|
-
anuais: IPlanoRaw[];
|
|
23
|
-
}
|
|
24
|
-
interface IPlanoRaw {
|
|
25
|
-
botaoAcao: string;
|
|
26
|
-
codigo: number;
|
|
27
|
-
codigoPlanoValor: number;
|
|
28
|
-
controlaBilhetagem: number;
|
|
29
|
-
descricao: string;
|
|
30
|
-
destaque: number;
|
|
31
|
-
fraseDeEfeito: string;
|
|
32
|
-
fraseTesteGratis: string | null;
|
|
33
|
-
nome: string;
|
|
34
|
-
periodicidade: number;
|
|
35
|
-
quantidadeBilhetagem: number;
|
|
36
|
-
quantidadeTesteGratis: null;
|
|
37
|
-
tipoAssinatura: number;
|
|
38
|
-
tipoDeCobranca: number;
|
|
39
|
-
tipoTesteGratis: number | null;
|
|
40
|
-
valorAdesao: number;
|
|
41
|
-
valorAdesaoPromocional: number;
|
|
42
|
-
valorBilhetagem: number;
|
|
43
|
-
valorPeriodico: number;
|
|
44
|
-
valorPeriodicoPromocional: number;
|
|
45
|
-
}
|
|
46
|
-
interface Grupo {
|
|
47
|
-
botaoAcao: string;
|
|
48
|
-
codigo: number;
|
|
49
|
-
descricao: string;
|
|
50
|
-
imagem: string;
|
|
51
|
-
nome: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface BuscarRntrcResponse {
|
|
55
|
-
cpf_cnpj: string;
|
|
56
|
-
data_cadastro: string;
|
|
57
|
-
data_validade: string;
|
|
58
|
-
municipio_uf: string;
|
|
59
|
-
pagamento_eletronico: boolean;
|
|
60
|
-
razao_social: string;
|
|
61
|
-
rntrc: string;
|
|
62
|
-
situacao: string;
|
|
63
|
-
transporte_remunerado: boolean;
|
|
64
|
-
veiculo_pertence_frota: boolean | null;
|
|
65
|
-
}
|
|
66
|
-
interface BuscarCepResponse {
|
|
67
|
-
bairro: string;
|
|
68
|
-
cep: string;
|
|
69
|
-
cidade: string;
|
|
70
|
-
codigo_ibge: number;
|
|
71
|
-
complemento: string;
|
|
72
|
-
logradouro: string;
|
|
73
|
-
uf: string;
|
|
74
|
-
}
|
|
75
|
-
interface PesquisarDadosCidadeResponse {
|
|
76
|
-
codigo: number;
|
|
77
|
-
latitude: number;
|
|
78
|
-
longitude: number;
|
|
79
|
-
nome: string;
|
|
80
|
-
siafi: string;
|
|
81
|
-
uf: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface BuscarMeusDadosResponse {
|
|
85
|
-
alteracaoDoEmailDaEmpresa: {
|
|
86
|
-
data_expiracao: string;
|
|
87
|
-
novo_email: string;
|
|
88
|
-
} | null;
|
|
89
|
-
alteracaoDoEmailDoResponsavel: {
|
|
90
|
-
data_expiracao: string;
|
|
91
|
-
novo_email: string;
|
|
92
|
-
} | null;
|
|
93
|
-
bairro: string | null;
|
|
94
|
-
cep: string | null;
|
|
95
|
-
cidade: string | null;
|
|
96
|
-
codigoCidade: number | null;
|
|
97
|
-
complemento: string | null;
|
|
98
|
-
cpfCnpj: string | null;
|
|
99
|
-
dataBloqueio: string | null;
|
|
100
|
-
dataContratacao: string | null;
|
|
101
|
-
dataInativacao: string | null;
|
|
102
|
-
email: string | null;
|
|
103
|
-
emailCobranca: string | null;
|
|
104
|
-
emailResponsavel: string | null;
|
|
105
|
-
exibirAbaMeuPlano: boolean | null;
|
|
106
|
-
fone: string | null;
|
|
107
|
-
foneResponsavel: string | null;
|
|
108
|
-
funruralDescricao: string | null;
|
|
109
|
-
funruralTipo: number | null;
|
|
110
|
-
ie: string | null;
|
|
111
|
-
logotipo: {
|
|
112
|
-
conteudo: string;
|
|
113
|
-
mimetype: string;
|
|
114
|
-
nome: string;
|
|
115
|
-
tamanho: number;
|
|
116
|
-
} | null;
|
|
117
|
-
motivoInativacao: string | null;
|
|
118
|
-
nomeFantasia: string | null;
|
|
119
|
-
nomeResponsavel: string | null;
|
|
120
|
-
numero: string | null;
|
|
121
|
-
razaoSocial: string | null;
|
|
122
|
-
regimeTributario: number | null;
|
|
123
|
-
rntrc: string | null;
|
|
124
|
-
rntrcDataVencimento: string | null;
|
|
125
|
-
rua: string | null;
|
|
126
|
-
situacao: number | null;
|
|
127
|
-
tipoPessoa: number | null;
|
|
128
|
-
uf: string | null;
|
|
129
|
-
}
|
|
130
|
-
interface AtualizarMeusDadosBody {
|
|
131
|
-
bairro: string;
|
|
132
|
-
cep: string;
|
|
133
|
-
codigoCidade: number;
|
|
134
|
-
complemento: string;
|
|
135
|
-
email: string;
|
|
136
|
-
emailResponsavel: string;
|
|
137
|
-
fone: string;
|
|
138
|
-
foneResponsavel: string;
|
|
139
|
-
funruralRescricao: string;
|
|
140
|
-
funruralTipo: number;
|
|
141
|
-
ie: string;
|
|
142
|
-
logotipo: {
|
|
143
|
-
conteudo: string;
|
|
144
|
-
nome: string;
|
|
145
|
-
mimetype: string;
|
|
146
|
-
tamanho: number;
|
|
147
|
-
};
|
|
148
|
-
nomeFantasia: string;
|
|
149
|
-
nomeResponsavel: string;
|
|
150
|
-
numero: string;
|
|
151
|
-
razaoSocial: string;
|
|
152
|
-
regimeTributario: number;
|
|
153
|
-
rntrc: string;
|
|
154
|
-
rntrcDataVencimento: string;
|
|
155
|
-
rua: string;
|
|
156
|
-
}
|
|
157
|
-
interface MeuPlanoRecursosResponse {
|
|
158
|
-
codigoGrupo: number | null;
|
|
159
|
-
codigoPlano: number | null;
|
|
160
|
-
dataContratacao: string | null;
|
|
161
|
-
descricaoPlano: string | null;
|
|
162
|
-
diaVencimentoBoleto: number | null;
|
|
163
|
-
diasCarencia: number | null;
|
|
164
|
-
nomePlano: string | null;
|
|
165
|
-
observacaoPlano: number | null;
|
|
166
|
-
periodicidade: Periodicidade | null;
|
|
167
|
-
qtdeBilhetagem: number | null;
|
|
168
|
-
recursos: IMeuPlanoRecurso[] | null;
|
|
169
|
-
tipoAcesso: number | null;
|
|
170
|
-
tipoCobranca: TipoCobranca | null;
|
|
171
|
-
valor: number | null;
|
|
172
|
-
codigoPlanoEmpresa: number | null;
|
|
173
|
-
valorBilhetagem: number | null;
|
|
174
|
-
bilhetagemExcedenteAtiva: number | null;
|
|
175
|
-
dataInicioUltimaFatura: string | null;
|
|
176
|
-
dataFimUltimaFatura: string | null;
|
|
177
|
-
}
|
|
178
|
-
interface IMeuPlanoRecurso {
|
|
179
|
-
caminhoImagem: string;
|
|
180
|
-
codigoRecurso: number;
|
|
181
|
-
dataContratacaoRecurso: string;
|
|
182
|
-
dataExclusaoRecurso: string | null;
|
|
183
|
-
dataSolicitacaoExcRecurso: string | null;
|
|
184
|
-
descricaoRecurso: string;
|
|
185
|
-
nomeRecurso: string;
|
|
186
|
-
recursoContratado: boolean;
|
|
187
|
-
slugRecurso: string;
|
|
188
|
-
valorRecurso: number;
|
|
189
|
-
}
|
|
190
|
-
interface ItemListarCobrancasResponse {
|
|
191
|
-
dataBaixa: string | null;
|
|
192
|
-
dataEmissao: string;
|
|
193
|
-
dataPagamento: string | null;
|
|
194
|
-
dataVencimento: string | null;
|
|
195
|
-
descricao: string | null;
|
|
196
|
-
linkFatura: string;
|
|
197
|
-
formaPagamento: 1 | 3;
|
|
198
|
-
identificador: string;
|
|
199
|
-
nfseEmitida: 1 | 0;
|
|
200
|
-
observacaoInterna: string | null;
|
|
201
|
-
situacao: CobrancaSituacao;
|
|
202
|
-
valor: number;
|
|
203
|
-
}
|
|
204
|
-
type CobrancaSituacao = 'EMITIDO' | 'LIQUIDADO' | 'BAIXADO' | 'ISENTADO';
|
|
205
|
-
interface BuscarBoletoResponse {
|
|
206
|
-
boleto: string;
|
|
207
|
-
}
|
|
208
|
-
interface BuscarNfseResponse {
|
|
209
|
-
danfse?: string;
|
|
210
|
-
link_impressao_danfse: string;
|
|
211
|
-
xml: string;
|
|
212
|
-
}
|
|
213
|
-
interface BuscarPlanoPayload {
|
|
214
|
-
path: {
|
|
215
|
-
codigo: number;
|
|
216
|
-
};
|
|
217
|
-
params: {
|
|
218
|
-
periodicidade: Periodicidade;
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
declare enum TipoCobranca {
|
|
222
|
-
PRE_PAGO = 1,
|
|
223
|
-
POS_PAGO = 2
|
|
224
|
-
}
|
|
225
|
-
declare enum Periodicidade {
|
|
226
|
-
MENSAL = 0,
|
|
227
|
-
TRIMESTRAL = 1,
|
|
228
|
-
SEMESTRAL = 2,
|
|
229
|
-
ANUAL = 3
|
|
230
|
-
}
|
|
231
|
-
interface BuscarPlanoResponse {
|
|
232
|
-
codigo: number;
|
|
233
|
-
nome: string;
|
|
234
|
-
recursos: IPlanoRecurso[];
|
|
235
|
-
valores: {
|
|
236
|
-
codigoValor: number;
|
|
237
|
-
periodicidade: Periodicidade;
|
|
238
|
-
tipoCobranca: TipoCobranca;
|
|
239
|
-
valor: number;
|
|
240
|
-
}[];
|
|
241
|
-
}
|
|
242
|
-
interface IPlanoRecurso {
|
|
243
|
-
codigoRecurso: string;
|
|
244
|
-
nomeRecurso: string;
|
|
245
|
-
slugRecurso: string;
|
|
246
|
-
valorRecurso: number;
|
|
247
|
-
}
|
|
248
|
-
interface AlterarPlanoPayload {
|
|
249
|
-
codigoPlano: number;
|
|
250
|
-
codigoPlanoValor: number;
|
|
251
|
-
}
|
|
252
|
-
interface AtualizarEmailsCobrancaBody {
|
|
253
|
-
emails: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
type ApiResponse<TData> = {
|
|
257
|
-
data: TData;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
declare class ApiMinhaConta {
|
|
261
|
-
private axiosSistema;
|
|
262
|
-
private axiosControle;
|
|
263
|
-
private listeners;
|
|
264
|
-
constructor(axiosInstance: AxiosInstance);
|
|
265
|
-
setToken(value: string): void;
|
|
266
|
-
get token(): string;
|
|
267
|
-
buscarMeusDados(): Promise<axios.AxiosResponse<ApiResponse<BuscarMeusDadosResponse>, any>>;
|
|
268
|
-
atualizarMeusDados(body: AtualizarMeusDadosBody): Promise<axios.AxiosResponse<any, any>>;
|
|
269
|
-
buscarMeuPlanoRecursos(): Promise<axios.AxiosResponse<ApiResponse<MeuPlanoRecursosResponse>, any>>;
|
|
270
|
-
contratarRecurso(codigoRecurso: number): Promise<axios.AxiosResponse<any, any>>;
|
|
271
|
-
descontratarRecurso(codigoRecurso: number): Promise<axios.AxiosResponse<any, any>>;
|
|
272
|
-
buscarPlano(payload: BuscarPlanoPayload): Promise<axios.AxiosResponse<ApiResponse<BuscarPlanoResponse>, any>>;
|
|
273
|
-
contratarPlano(plano: AlterarPlanoPayload): Promise<axios.AxiosResponse<any, any>>;
|
|
274
|
-
listarCobrancas(): Promise<axios.AxiosResponse<ApiResponse<ItemListarCobrancasResponse[]>, any>>;
|
|
275
|
-
atualizarEmailCobranca(emails: AtualizarEmailsCobrancaBody): Promise<axios.AxiosResponse<any, any>>;
|
|
276
|
-
buscarBoleto(identificador: string): Promise<axios.AxiosResponse<ApiResponse<BuscarBoletoResponse>, any>>;
|
|
277
|
-
buscarNfse(identificador: string): Promise<axios.AxiosResponse<ApiResponse<BuscarNfseResponse>, any>>;
|
|
278
|
-
listarPlanosEGrupos(payload: BuscarPlanosEGruposPayload): Promise<axios.AxiosResponse<ApiResponse<BuscarPlanosEGruposResponse>, any>>;
|
|
279
|
-
buscarRntrc(cnpj: string): Promise<axios.AxiosResponse<ApiResponse<BuscarRntrcResponse>, any>>;
|
|
280
|
-
buscarCep(cep: string): Promise<axios.AxiosResponse<ApiResponse<BuscarCepResponse>, any>>;
|
|
281
|
-
pesquisarCidades(search: string): Promise<axios.AxiosResponse<ApiResponse<PesquisarDadosCidadeResponse[]>, any>>;
|
|
282
|
-
subscriber(listener: () => void): () => boolean;
|
|
283
|
-
private notify;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
declare function ButtonPlanos(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
287
|
-
declare function ButtonLojaRecursos(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
288
|
-
|
|
289
|
-
type ItemRecursoProps = {
|
|
290
|
-
recurso: IMeuPlanoRecurso;
|
|
291
|
-
};
|
|
292
|
-
declare function DetalhesItemRecurso({ recurso }: ItemRecursoProps): react_jsx_runtime.JSX.Element;
|
|
293
|
-
type DetalhesItemPlanoProps = {
|
|
294
|
-
meuPlano?: MeuPlanoRecursosResponse;
|
|
295
|
-
};
|
|
296
|
-
declare function DetalhesItemPlano({ meuPlano }: DetalhesItemPlanoProps): react_jsx_runtime.JSX.Element;
|
|
297
|
-
|
|
298
|
-
type MeuPlanoInfoSlots = {
|
|
299
|
-
DetalhesItemRecurso: typeof DetalhesItemRecurso;
|
|
300
|
-
DetalhesItemPlano: typeof DetalhesItemPlano;
|
|
301
|
-
ButtonPlanos: typeof ButtonPlanos;
|
|
302
|
-
ButtonLojaRecursos: typeof ButtonLojaRecursos;
|
|
303
|
-
};
|
|
304
|
-
type MeuPlanoInfoProps = {
|
|
305
|
-
slots?: Partial<MeuPlanoInfoSlots>;
|
|
306
|
-
onClickButtonPlanos?: MouseEventHandler<HTMLButtonElement>;
|
|
307
|
-
onClickButtonLojaRecursos?: MouseEventHandler<HTMLButtonElement>;
|
|
308
|
-
exibirPlanos: boolean;
|
|
309
|
-
exibirLojaRecursos: boolean;
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
declare function MeuPlanoInfo(props: MeuPlanoInfoProps): react_jsx_runtime.JSX.Element;
|
|
313
|
-
|
|
314
|
-
type NotificationProps = {
|
|
315
|
-
variant?: 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
316
|
-
duration?: number;
|
|
317
|
-
title?: string;
|
|
318
|
-
message?: string;
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
type NotificationProviderProps = PropsWithChildren<{
|
|
322
|
-
onNotification(params: NotificationProps): void;
|
|
323
|
-
}>;
|
|
324
|
-
|
|
325
|
-
interface RecursosDialogProps extends Pick<NotificationProviderProps, 'onNotification'> {
|
|
326
|
-
onClose: () => void;
|
|
327
|
-
}
|
|
328
|
-
interface IRecurso extends IMeuPlanoRecurso {
|
|
329
|
-
gif: string | null;
|
|
330
|
-
emDestaque: boolean;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
interface MinhaContaStoreState extends SistemaNome, ContatoSuporte {
|
|
334
|
-
tabAtiva?: Tabs;
|
|
335
|
-
/**
|
|
336
|
-
* Prop que ao ser passada como True esconde a Tab "Meu plano".
|
|
337
|
-
*/
|
|
338
|
-
esconderTabMeuPlano?: boolean;
|
|
339
|
-
/**
|
|
340
|
-
* Props relacionadas à tab `Minha empresa`
|
|
341
|
-
*/
|
|
342
|
-
minhaEmpresa: MinhaEmpresaState;
|
|
343
|
-
/**
|
|
344
|
-
* Props relacionadas à tab `Meu plano`
|
|
345
|
-
*/
|
|
346
|
-
meuPlano: MeuPlanoState;
|
|
347
|
-
/**
|
|
348
|
-
* Props relacionadas à loja de recursos
|
|
349
|
-
*/
|
|
350
|
-
recursosDialog: RecursosDialogState;
|
|
351
|
-
/**
|
|
352
|
-
* Props relacionadas à loja de planos
|
|
353
|
-
*/
|
|
354
|
-
planosDialog: PlanosDialogState;
|
|
355
|
-
usuario?: {
|
|
356
|
-
email: string;
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
interface SistemaNome {
|
|
360
|
-
/**
|
|
361
|
-
* O nome do sistema em que o minha conta está sendo injetado sobre
|
|
362
|
-
*/
|
|
363
|
-
sistemaNome: string;
|
|
364
|
-
}
|
|
365
|
-
interface ContatoSuporte {
|
|
366
|
-
/**
|
|
367
|
-
* Telefone para entrar em contato com o suporte.
|
|
368
|
-
*
|
|
369
|
-
* @important Mandar com 55 e sem máscara
|
|
370
|
-
*/
|
|
371
|
-
telefoneSuporte: string;
|
|
372
|
-
/**
|
|
373
|
-
* Telefone para entrar em contato com o CS
|
|
374
|
-
*
|
|
375
|
-
* @important Mandar com 55 e sem máscara
|
|
376
|
-
*/
|
|
377
|
-
telefoneCS?: string;
|
|
378
|
-
}
|
|
379
|
-
interface MinhaEmpresaState {
|
|
380
|
-
/**
|
|
381
|
-
* Campos adicionais no formulário que são renderizados abaixo dos campos obrigatórios da empresa
|
|
382
|
-
*/
|
|
383
|
-
camposAdicionais?: {
|
|
384
|
-
ie?: ICampoAdicional;
|
|
385
|
-
rntrc?: ICampoAdicional;
|
|
386
|
-
rntrcVencimento?: ICampoAdicional;
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* Função Callback executada ao salvar os dados da minha conta com sucesso
|
|
390
|
-
* @param `query` - A query com os dados utilizados para salvar a minha conta
|
|
391
|
-
*/
|
|
392
|
-
onDadosAtualizadosComSucesso?: (query: AtualizarMeusDadosBody) => void;
|
|
393
|
-
/**
|
|
394
|
-
* Prop para mostrar um helper nos campos de e-mail
|
|
395
|
-
*/
|
|
396
|
-
helperCamposDeEmail?: ReactElement;
|
|
397
|
-
}
|
|
398
|
-
interface MeuPlanoState {
|
|
399
|
-
/**
|
|
400
|
-
* Link de uma página web que contenha os termos de uso do produto.
|
|
401
|
-
* O link na aba "Meu plano" aparecerá somente se esta prop existir
|
|
402
|
-
*/
|
|
403
|
-
linkTermosDeUso?: string;
|
|
404
|
-
/**
|
|
405
|
-
* Esconde o botão "Ver Planos"
|
|
406
|
-
*/
|
|
407
|
-
esconderPlanos?: boolean;
|
|
408
|
-
/**
|
|
409
|
-
* Esconde o botão "Loja de recursos"
|
|
410
|
-
*/
|
|
411
|
-
esconderLojaDeRecursos?: boolean;
|
|
412
|
-
/**
|
|
413
|
-
* Esconde o card com as informações do plano atual
|
|
414
|
-
*/
|
|
415
|
-
esconderInformacoesPlano?: boolean;
|
|
416
|
-
/**
|
|
417
|
-
* Path da imagem para o empty state da listagem de faturas
|
|
418
|
-
*/
|
|
419
|
-
faturasEmptyStateImg?: string;
|
|
420
|
-
/**
|
|
421
|
-
* Mostra botão de abrir fatura
|
|
422
|
-
*/
|
|
423
|
-
exibirAbrirFatura?: boolean;
|
|
424
|
-
/**
|
|
425
|
-
* Função Callback executada ao renderizar a tab do meu plano
|
|
426
|
-
* @dica Pode ser usada para executar uma função de monitoraramento das ações do usuário
|
|
427
|
-
*/
|
|
428
|
-
onRenderTabMeuPlano?: () => void;
|
|
429
|
-
}
|
|
430
|
-
interface RecursosDialogState {
|
|
431
|
-
/**
|
|
432
|
-
* Array de objetos com os gifs dos recursos da loja de recursos
|
|
433
|
-
*/
|
|
434
|
-
recursosGifs?: {
|
|
435
|
-
slug: string;
|
|
436
|
-
gif: string;
|
|
437
|
-
}[];
|
|
438
|
-
/**
|
|
439
|
-
* Slug de um recurso para ser destacado e ficar no topo da lista
|
|
440
|
-
*
|
|
441
|
-
* @important Somente funciona com recursos não contratados
|
|
442
|
-
*/
|
|
443
|
-
recursoEmDestaque?: string;
|
|
444
|
-
/**
|
|
445
|
-
* Path da imagem para o empty state dos recursos não contratados
|
|
446
|
-
*/
|
|
447
|
-
emptyStateImg?: string;
|
|
448
|
-
/**
|
|
449
|
-
* Callback executada ao contratar um recurso com sucesso
|
|
450
|
-
*/
|
|
451
|
-
onContratarRecurso?: (recursoContratado: IRecurso) => void;
|
|
452
|
-
/**
|
|
453
|
-
* Callback executada ao remover um recurso com sucesso
|
|
454
|
-
*/
|
|
455
|
-
onRemoverRecurso?: (recursoRemovido: IRecurso) => void;
|
|
456
|
-
/**
|
|
457
|
-
* Boolean para esconder ou não os valores dos recursos não contratados
|
|
458
|
-
*
|
|
459
|
-
* Se true, o botão de contratar chama o telefone do CS, se habilitado, ou do suporte
|
|
460
|
-
*/
|
|
461
|
-
esconderValoresRecursos?: boolean;
|
|
462
|
-
/**
|
|
463
|
-
* Para não permitir remover recursos contratados
|
|
464
|
-
*
|
|
465
|
-
* Se true, o botão de remover abre o whats do CS ou suporte
|
|
466
|
-
*/
|
|
467
|
-
naoPermitirRemoverRecursos?: boolean;
|
|
468
|
-
/**
|
|
469
|
-
* Callback executada ao clicar no recurso, seja em "Quero saber mais" ou "Adquirir"
|
|
470
|
-
*/
|
|
471
|
-
acaoSecundariaOnClickRecurso?: () => void;
|
|
472
|
-
}
|
|
473
|
-
interface PlanosDialogState {
|
|
474
|
-
/**
|
|
475
|
-
* Path da imagem para o empty state
|
|
476
|
-
*/
|
|
477
|
-
emptyStateImg?: string;
|
|
478
|
-
/**
|
|
479
|
-
* Define as imagens que irão aparecer nas modais de contratar um plano novo
|
|
480
|
-
*/
|
|
481
|
-
imagensAlterarPlano?: {
|
|
482
|
-
diminuir: string;
|
|
483
|
-
melhorar: string;
|
|
484
|
-
contratar: string;
|
|
485
|
-
};
|
|
486
|
-
/**
|
|
487
|
-
* Impede de trocar para um plano de menor valor
|
|
488
|
-
*/
|
|
489
|
-
bloquearDowngrade?: boolean;
|
|
490
|
-
/**
|
|
491
|
-
* Impede de trocar para um plano de menor valor até usar o plano atual por 30 dias.
|
|
492
|
-
*/
|
|
493
|
-
bloquearDowngrade30Dias?: boolean;
|
|
494
|
-
/**
|
|
495
|
-
* Deixa desabilitado os planos com valor menor que o contratado.
|
|
496
|
-
*/
|
|
497
|
-
desabilitarPlanosMenores?: boolean;
|
|
498
|
-
/**
|
|
499
|
-
* Mostra determinados planos de um determinado grupo
|
|
500
|
-
*
|
|
501
|
-
* Se passar somente `codigoGrupo`, serão exibidos todos os planos do grupo
|
|
502
|
-
*
|
|
503
|
-
* Se passar somente `codigoPlanoValor`, serão filtrados a partir dos planos do grupo e será escondido o filtro de periodicidade
|
|
504
|
-
*/
|
|
505
|
-
mostrarPlanosDeterminados?: {
|
|
506
|
-
codigoGrupo?: number;
|
|
507
|
-
/**
|
|
508
|
-
* Identificador do plano junto com uma periodicidade
|
|
509
|
-
* */
|
|
510
|
-
codigoPlanoValor?: number[];
|
|
511
|
-
};
|
|
512
|
-
/**
|
|
513
|
-
* Esconde o filtro de periodicidade
|
|
514
|
-
*/
|
|
515
|
-
esconderPeriodicidade?: boolean;
|
|
516
|
-
/**
|
|
517
|
-
* Mostra somente os planos da periodicidade informada
|
|
518
|
-
*
|
|
519
|
-
* Se houverem planos setados em codigoValorPlano, serão desconsiderados
|
|
520
|
-
*/
|
|
521
|
-
mostrarSomentePlanosDaPeriodicidade?: 'mensais' | 'trimestrais' | 'semestrais' | 'anuais';
|
|
522
|
-
/**
|
|
523
|
-
* Esconde o valor dos planos
|
|
524
|
-
*
|
|
525
|
-
* Se true, o botão de contratar chama o telefone do CS, se habilitado, ou do suporte
|
|
526
|
-
*/
|
|
527
|
-
esconderValorPlanos?: boolean;
|
|
528
|
-
/**
|
|
529
|
-
* Não deixa desabilitado o plano atual do cliente
|
|
530
|
-
*/
|
|
531
|
-
habilitarPlanoAtual?: boolean;
|
|
532
|
-
/**
|
|
533
|
-
* Callback executada ao contratar um plano com sucesso
|
|
534
|
-
*/
|
|
535
|
-
onContratarSuccess?: (planoAntigo: MeuPlanoRecursosResponse, planoNovo: IPlanoWithRecursos) => void;
|
|
536
|
-
}
|
|
537
|
-
type Tabs = 'minhaEmpresa' | 'meuPlano';
|
|
538
|
-
interface ICampoAdicional {
|
|
539
|
-
grid?: {
|
|
540
|
-
xs?: GridSize;
|
|
541
|
-
sm?: GridSize;
|
|
542
|
-
md?: GridSize;
|
|
543
|
-
lg?: GridSize;
|
|
544
|
-
};
|
|
545
|
-
required?: TextFieldProps['required'];
|
|
546
|
-
rules?: TextFieldProps['rules'];
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
interface PlanosDialogProps extends ContatoSuporte, PlanosDialogState, Pick<NotificationProviderProps, 'onNotification'> {
|
|
550
|
-
onClose: () => void;
|
|
551
|
-
}
|
|
552
|
-
interface IPlano extends IPlanoRaw {
|
|
553
|
-
planoAtual: boolean;
|
|
554
|
-
valorMensalMenorQueAtual: boolean;
|
|
555
|
-
disabled: boolean;
|
|
556
|
-
disabled30Dias: boolean;
|
|
557
|
-
}
|
|
558
|
-
interface IPlanoWithRecursos extends IPlano {
|
|
559
|
-
recursos: IPlanoRecurso[];
|
|
560
|
-
}
|
|
561
|
-
interface IPlanoWithRecursos extends IPlano {
|
|
562
|
-
recursos: IPlanoRecurso[];
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
declare function PlanosDialog({ onClose, onNotification }: PlanosDialogProps): react_jsx_runtime.JSX.Element;
|
|
566
|
-
|
|
567
|
-
declare function RecursosDialog({ onClose, onNotification }: RecursosDialogProps): react_jsx_runtime.JSX.Element;
|
|
568
|
-
|
|
569
|
-
type TextFieldSlotProps = Partial<Omit<TextFieldProps, 'name'>>;
|
|
570
|
-
type MinhaContaSlotProps = {
|
|
571
|
-
/**
|
|
572
|
-
* @prop label - `"Nome fantasia"`
|
|
573
|
-
* @prop required - `true`
|
|
574
|
-
* @prop rules - `composeValidators([required, maxLength(60)])`
|
|
575
|
-
*/
|
|
576
|
-
textFieldEmpresaEmail?: TextFieldSlotProps;
|
|
577
|
-
};
|
|
578
|
-
type MinhaContaProps = Omit<MinhaContaStoreState, 'ready' | 'usuario'> & Pick<NotificationProviderProps, 'onNotification'> & {
|
|
579
|
-
slotProps?: MinhaContaSlotProps;
|
|
580
|
-
} & {
|
|
581
|
-
api: ApiMinhaConta;
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
type MinhaContaProviderProps = Partial<Omit<MinhaContaStoreState, 'ready' | 'usuario'>> & Pick<MinhaContaProps, 'slotProps' | 'api'>;
|
|
585
|
-
declare function MinhaContaProvider(props: PropsWithChildren<MinhaContaProviderProps>): react_jsx_runtime.JSX.Element;
|
|
586
|
-
|
|
587
|
-
declare function MinhaContaQueryProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
588
|
-
|
|
589
|
-
declare const NotificationProvider: ({ onNotification: setNotification, children }: NotificationProviderProps) => react_jsx_runtime.JSX.Element;
|
|
590
|
-
|
|
591
|
-
declare class ApiConfirmarEmail {
|
|
592
|
-
private axiosSistemaPublico;
|
|
593
|
-
constructor(axiosInstance: AxiosInstance);
|
|
594
|
-
confirmarEmailEmpresa(token: string): Promise<axios.AxiosResponse<any, any>>;
|
|
595
|
-
confirmarEmailResponsavel(token: string): Promise<axios.AxiosResponse<any, any>>;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
interface ConfirmarEmailProps extends Pick<NotificationProviderProps, 'onNotification'> {
|
|
599
|
-
api: ApiConfirmarEmail;
|
|
600
|
-
tipo: ConfirmarEmailTipo;
|
|
601
|
-
imagem: string;
|
|
602
|
-
onSubmit: () => void;
|
|
603
|
-
}
|
|
604
|
-
type ConfirmarEmailTipo = 'empresa' | 'responsável';
|
|
605
|
-
|
|
606
|
-
declare function ConfirmarEmail(props: ConfirmarEmailProps): react_jsx_runtime.JSX.Element;
|
|
607
|
-
|
|
608
|
-
declare function Faturas(): react_jsx_runtime.JSX.Element;
|
|
609
|
-
|
|
610
|
-
declare function MeuPlanoComp(): react_jsx_runtime.JSX.Element;
|
|
611
|
-
declare const MeuPlano: react.MemoExoticComponent<typeof MeuPlanoComp>;
|
|
612
|
-
|
|
613
|
-
declare function MinhaConta(props: MinhaContaProps): react_jsx_runtime.JSX.Element;
|
|
614
|
-
|
|
615
|
-
declare function MinhaEmpresaComp(): react_jsx_runtime.JSX.Element;
|
|
616
|
-
declare const MinhaEmpresa: react.MemoExoticComponent<typeof MinhaEmpresaComp>;
|
|
617
|
-
|
|
618
|
-
export { ApiConfirmarEmail, ApiMinhaConta, ConfirmarEmail, type ConfirmarEmailProps, Faturas, MeuPlano, MeuPlanoInfo, type MeuPlanoInfoProps, type MeuPlanoInfoSlots, MinhaConta, type MinhaContaProps, MinhaContaProvider, type MinhaContaProviderProps, MinhaContaQueryProvider, MinhaEmpresa, NotificationProvider, PlanosDialog, type PlanosDialogProps, RecursosDialog, type RecursosDialogProps };
|