@navservice/usuario 1.50.0 → 1.52.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/build/es/biblioteca/src/componentes/auth/RefreshToken/RefreshToken.d.ts +7 -0
- package/build/es/biblioteca/src/componentes/auth/RefreshToken/index.d.ts +1 -0
- package/build/es/biblioteca/src/contexto/contexto_usuario.d.ts +1 -0
- package/build/es/biblioteca/src/index.d.ts +1 -0
- package/build/es/index.js +1383 -716
- package/package.json +1 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthAtivarDesativarAuthenticator/AuthAtivarDesativarAuthenticator.d.ts +0 -2
- package/build/lib/biblioteca/src/componentes/auth/AuthAtivarDesativarAuthenticator/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthGoogle/AuthGoogle.d.ts +0 -5
- package/build/lib/biblioteca/src/componentes/auth/AuthGoogle/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthLogin/AuthLogin.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthLogin/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthRegister/AuthRegister.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/AuthRegister/index.d.ts +0 -2
- package/build/lib/biblioteca/src/componentes/auth/EnviarCodigoOtpParaEmail/EnviarCodigoOtpParaEmail.d.ts +0 -12
- package/build/lib/biblioteca/src/componentes/auth/EnviarCodigoOtpParaEmail/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/EsqueciMinhaSenha/EsqueciMinhaSenha.d.ts +0 -5
- package/build/lib/biblioteca/src/componentes/auth/EsqueciMinhaSenha/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/RecuperarSenhaComCodigoOtp/RecuperarSenhaComCodigoOtp.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/RecuperarSenhaComCodigoOtp/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/auth/VerificarAuthenticator/VerificarAuthenticator.d.ts +0 -2
- package/build/lib/biblioteca/src/componentes/auth/VerificarAuthenticator/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/drawer/DraweFullScreen/DraweFullScreen.d.ts +0 -12
- package/build/lib/biblioteca/src/componentes/drawer/DraweFullScreen/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/drawer/DrawerPadrao/DrawerPadrao.d.ts +0 -12
- package/build/lib/biblioteca/src/componentes/drawer/DrawerPadrao/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/geral/FormularioZod/index.d.ts +0 -45
- package/build/lib/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +0 -5
- package/build/lib/biblioteca/src/componentes/geral/TopTabs/index.d.ts +0 -10
- package/build/lib/biblioteca/src/componentes/layout/Layout.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/layout/NavBar/DarkMode.d.ts +0 -2
- package/build/lib/biblioteca/src/componentes/layout/NavBar/Logo.d.ts +0 -2
- package/build/lib/biblioteca/src/componentes/layout/NavBar/Profile.d.ts +0 -5
- package/build/lib/biblioteca/src/componentes/layout/NavBar/index.d.ts +0 -3
- package/build/lib/biblioteca/src/componentes/layout/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/layoutPublic/Header.d.ts +0 -7
- package/build/lib/biblioteca/src/componentes/layoutPublic/index.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/layoutPublic/layoutPublic.d.ts +0 -7
- package/build/lib/biblioteca/src/config_env/index.d.ts +0 -16
- package/build/lib/biblioteca/src/contexto/contexto_codigo_otp.d.ts +0 -19
- package/build/lib/biblioteca/src/contexto/contexto_layout.d.ts +0 -74
- package/build/lib/biblioteca/src/contexto/contexto_usuario.d.ts +0 -32
- package/build/lib/biblioteca/src/index.d.ts +0 -15
- package/build/lib/index.js +0 -51339
- package/build/lib/shared/configuracoes/_sistema.d.ts +0 -49
- package/build/lib/shared/configuracoes/_theme.d.ts +0 -91
- package/build/lib/shared/configuracoes/index.d.ts +0 -142
- package/build/lib/shared/types/controller/type_codigo_verificacao_otp.d.ts +0 -88
- package/build/lib/shared/types/controller/type_controller_authenticator.d.ts +0 -88
- package/build/lib/shared/types/controller/type_controller_usuario.d.ts +0 -263
- package/build/lib/shared/types/geral/type_response.d.ts +0 -54
- package/build/lib/shared/types/index.d.ts +0 -50
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from "axios";
|
|
2
|
-
import z4 from "zod/v4";
|
|
3
|
-
import t from "..";
|
|
4
|
-
export declare const input: (meta: t.Geral.FormularioZod.Describe) => string;
|
|
5
|
-
declare namespace TypeControllerUsuario {
|
|
6
|
-
const AppEnumZod: z4.ZodEnum<{
|
|
7
|
-
"service-usuario": "service-usuario";
|
|
8
|
-
"service-financeiro": "service-financeiro";
|
|
9
|
-
"service-pages-ai": "service-pages-ai";
|
|
10
|
-
"service-assinatura": "service-assinatura";
|
|
11
|
-
}>;
|
|
12
|
-
const UsuarioTipoEnumZod: z4.ZodEnum<{
|
|
13
|
-
padrao: "padrao";
|
|
14
|
-
}>;
|
|
15
|
-
type App = z4.infer<typeof AppEnumZod>;
|
|
16
|
-
type UsuarioTipo = z4.infer<typeof UsuarioTipoEnumZod>;
|
|
17
|
-
export const UsuarioBaseSchema: z4.ZodObject<{
|
|
18
|
-
_id: z4.ZodString;
|
|
19
|
-
data_criacao: z4.ZodNumber;
|
|
20
|
-
data_atualizacao: z4.ZodNullable<z4.ZodNumber>;
|
|
21
|
-
data_exclusao: z4.ZodNullable<z4.ZodNumber>;
|
|
22
|
-
nome: z4.ZodString;
|
|
23
|
-
email: z4.ZodEmail;
|
|
24
|
-
senha: z4.ZodString;
|
|
25
|
-
auth_google: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
|
|
26
|
-
excluido: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
|
|
27
|
-
ativo: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
|
|
28
|
-
}, z4.core.$strip>;
|
|
29
|
-
export interface Auth {
|
|
30
|
-
data: {
|
|
31
|
-
usuario: {
|
|
32
|
-
_id: string;
|
|
33
|
-
email: string;
|
|
34
|
-
nome?: string;
|
|
35
|
-
imagem?: string;
|
|
36
|
-
token?: string;
|
|
37
|
-
data_criacao?: number;
|
|
38
|
-
ativo?: 0 | 1;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface UsuarioAuth {
|
|
43
|
-
_id: string;
|
|
44
|
-
email: string;
|
|
45
|
-
nome: string;
|
|
46
|
-
data_criacao: number;
|
|
47
|
-
ativo: 1 | 0;
|
|
48
|
-
app: App;
|
|
49
|
-
usuario_tipo: UsuarioTipo;
|
|
50
|
-
}
|
|
51
|
-
export namespace Register {
|
|
52
|
-
const route: "/api/usuario/auth/register";
|
|
53
|
-
const InputSchema: z4.ZodObject<{
|
|
54
|
-
data: z4.ZodObject<{
|
|
55
|
-
usuario: z4.ZodObject<{
|
|
56
|
-
nome: z4.ZodString;
|
|
57
|
-
email: z4.ZodEmail;
|
|
58
|
-
senha: z4.ZodString;
|
|
59
|
-
imagem: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
60
|
-
auth_google: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
|
|
61
|
-
usuario_tipo: z4.ZodEnum<{
|
|
62
|
-
padrao: "padrao";
|
|
63
|
-
}>;
|
|
64
|
-
app: z4.ZodEnum<{
|
|
65
|
-
"service-usuario": "service-usuario";
|
|
66
|
-
"service-financeiro": "service-financeiro";
|
|
67
|
-
"service-pages-ai": "service-pages-ai";
|
|
68
|
-
"service-assinatura": "service-assinatura";
|
|
69
|
-
}>;
|
|
70
|
-
}, z4.core.$strip>;
|
|
71
|
-
}, z4.core.$strip>;
|
|
72
|
-
}, z4.core.$strip>;
|
|
73
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
74
|
-
type Output = Auth;
|
|
75
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
76
|
-
}
|
|
77
|
-
export namespace RegisterLoginGoogle {
|
|
78
|
-
const route: "/api/usuario/auth/google";
|
|
79
|
-
const InputSchema: z4.ZodObject<{
|
|
80
|
-
data: z4.ZodObject<{
|
|
81
|
-
usuario: z4.ZodObject<{
|
|
82
|
-
auth_google_credential: z4.ZodString;
|
|
83
|
-
usuario_tipo: z4.ZodEnum<{
|
|
84
|
-
padrao: "padrao";
|
|
85
|
-
}>;
|
|
86
|
-
app: z4.ZodEnum<{
|
|
87
|
-
"service-usuario": "service-usuario";
|
|
88
|
-
"service-financeiro": "service-financeiro";
|
|
89
|
-
"service-pages-ai": "service-pages-ai";
|
|
90
|
-
"service-assinatura": "service-assinatura";
|
|
91
|
-
}>;
|
|
92
|
-
codigo_temporario: z4.ZodOptional<z4.ZodNullable<z4.ZodString>>;
|
|
93
|
-
}, z4.core.$strip>;
|
|
94
|
-
}, z4.core.$strip>;
|
|
95
|
-
}, z4.core.$strip>;
|
|
96
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
97
|
-
type Output = Auth;
|
|
98
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
99
|
-
}
|
|
100
|
-
export namespace Login {
|
|
101
|
-
const route: "/api/usuario/auth/login";
|
|
102
|
-
const InputSchema: z4.ZodObject<{
|
|
103
|
-
data: z4.ZodObject<{
|
|
104
|
-
usuario: z4.ZodObject<{
|
|
105
|
-
email: z4.ZodEmail;
|
|
106
|
-
senha: z4.ZodString;
|
|
107
|
-
codigo_temporario: z4.ZodOptional<z4.ZodNullable<z4.ZodString>>;
|
|
108
|
-
usuario_tipo: z4.ZodEnum<{
|
|
109
|
-
padrao: "padrao";
|
|
110
|
-
}>;
|
|
111
|
-
app: z4.ZodEnum<{
|
|
112
|
-
"service-usuario": "service-usuario";
|
|
113
|
-
"service-financeiro": "service-financeiro";
|
|
114
|
-
"service-pages-ai": "service-pages-ai";
|
|
115
|
-
"service-assinatura": "service-assinatura";
|
|
116
|
-
}>;
|
|
117
|
-
}, z4.core.$strip>;
|
|
118
|
-
}, z4.core.$strip>;
|
|
119
|
-
}, z4.core.$strip>;
|
|
120
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
121
|
-
type Output = Auth;
|
|
122
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
123
|
-
}
|
|
124
|
-
export namespace BuscarPeloFiltro {
|
|
125
|
-
const route: "/api/usuario";
|
|
126
|
-
const InputSchema: z4.ZodObject<{
|
|
127
|
-
filtros: z4.ZodObject<{
|
|
128
|
-
usuario: z4.ZodObject<{
|
|
129
|
-
pagina: z4.ZodNumber;
|
|
130
|
-
_id: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
131
|
-
nome: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
132
|
-
email: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
133
|
-
}, z4.core.$strip>;
|
|
134
|
-
}, z4.core.$strip>;
|
|
135
|
-
}, z4.core.$strip>;
|
|
136
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
137
|
-
type Output = {
|
|
138
|
-
data: {
|
|
139
|
-
paginacao: {
|
|
140
|
-
total_itens: number;
|
|
141
|
-
total_paginas: number;
|
|
142
|
-
itens_por_pagina: number;
|
|
143
|
-
total_itens_pagina_atual: number;
|
|
144
|
-
};
|
|
145
|
-
usuario: z4.infer<typeof UsuarioBaseSchema>[];
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
149
|
-
}
|
|
150
|
-
export namespace BuscarPeloId {
|
|
151
|
-
const route: "/api/usuario/:id";
|
|
152
|
-
const InputSchema: z4.ZodObject<{
|
|
153
|
-
data: z4.ZodObject<{
|
|
154
|
-
_id: z4.ZodString;
|
|
155
|
-
}, z4.core.$strip>;
|
|
156
|
-
}, z4.core.$strip>;
|
|
157
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
158
|
-
type Output = {
|
|
159
|
-
data: {
|
|
160
|
-
usuario: z4.infer<typeof UsuarioBaseSchema>;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
164
|
-
}
|
|
165
|
-
export namespace AtualizarPeloId {
|
|
166
|
-
const route: "/api/usuario/:id";
|
|
167
|
-
const InputSchema: z4.ZodObject<{
|
|
168
|
-
data: z4.ZodObject<{
|
|
169
|
-
usuario: z4.ZodObject<{
|
|
170
|
-
_id: z4.ZodString;
|
|
171
|
-
nome: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
172
|
-
email: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
173
|
-
senha: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
174
|
-
status: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
175
|
-
tipo: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
176
|
-
excluido: z4.ZodNullable<z4.ZodOptional<z4.ZodBoolean>>;
|
|
177
|
-
}, z4.core.$strip>;
|
|
178
|
-
}, z4.core.$strip>;
|
|
179
|
-
}, z4.core.$strip>;
|
|
180
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
181
|
-
type Output = {
|
|
182
|
-
data: {
|
|
183
|
-
usuario: z4.infer<typeof UsuarioBaseSchema>;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
187
|
-
}
|
|
188
|
-
export namespace DeletarPeloId {
|
|
189
|
-
const route: "/api/usuario/:id";
|
|
190
|
-
const InputSchema: z4.ZodObject<{
|
|
191
|
-
data: z4.ZodObject<{
|
|
192
|
-
_id: z4.ZodString;
|
|
193
|
-
}, z4.core.$strip>;
|
|
194
|
-
}, z4.core.$strip>;
|
|
195
|
-
type Input = z4.infer<typeof InputSchema>;
|
|
196
|
-
type Output = {
|
|
197
|
-
data: {
|
|
198
|
-
usuario: {};
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
202
|
-
}
|
|
203
|
-
export type TController = {
|
|
204
|
-
Criar: {
|
|
205
|
-
Input: any;
|
|
206
|
-
Output: any;
|
|
207
|
-
};
|
|
208
|
-
BuscarPeloFiltro: {
|
|
209
|
-
Input: BuscarPeloFiltro.Input;
|
|
210
|
-
Output: BuscarPeloFiltro.Output;
|
|
211
|
-
};
|
|
212
|
-
BuscarPeloId: {
|
|
213
|
-
Input: BuscarPeloId.Input;
|
|
214
|
-
Output: BuscarPeloId.Output;
|
|
215
|
-
};
|
|
216
|
-
AtualizarPeloId: {
|
|
217
|
-
Input: AtualizarPeloId.Input;
|
|
218
|
-
Output: AtualizarPeloId.Output;
|
|
219
|
-
};
|
|
220
|
-
DeletarPeloId: {
|
|
221
|
-
Input: DeletarPeloId.Input;
|
|
222
|
-
Output: DeletarPeloId.Output;
|
|
223
|
-
};
|
|
224
|
-
states: {
|
|
225
|
-
modal: {
|
|
226
|
-
item: BuscarPeloId.Output["data"]["usuario"];
|
|
227
|
-
loading: boolean;
|
|
228
|
-
open: boolean;
|
|
229
|
-
};
|
|
230
|
-
pagina: {
|
|
231
|
-
loading: boolean;
|
|
232
|
-
itens: BuscarPeloFiltro.Output["data"]["usuario"];
|
|
233
|
-
paginacao: {
|
|
234
|
-
total_itens: number;
|
|
235
|
-
total_paginas: number;
|
|
236
|
-
total_itens_pagina_atual: number;
|
|
237
|
-
itens_por_pagina: number;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
pagina_mini_select: {
|
|
241
|
-
loading: boolean;
|
|
242
|
-
itens: BuscarPeloFiltro.Output["data"]["usuario"];
|
|
243
|
-
item_selecionado: BuscarPeloId.Output["data"]["usuario"];
|
|
244
|
-
paginacao: {
|
|
245
|
-
total_itens: number;
|
|
246
|
-
total_paginas: number;
|
|
247
|
-
total_itens_pagina_atual: number;
|
|
248
|
-
itens_por_pagina: number;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
formulario: {
|
|
252
|
-
open: boolean;
|
|
253
|
-
atualizar: BuscarPeloId.Output["data"]["usuario"];
|
|
254
|
-
criar: any;
|
|
255
|
-
progress: number;
|
|
256
|
-
loading: boolean;
|
|
257
|
-
loading_submit: boolean;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
export {};
|
|
262
|
-
}
|
|
263
|
-
export default TypeControllerUsuario;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Context } from "hono";
|
|
2
|
-
import z4 from "zod/v4";
|
|
3
|
-
declare namespace TypeControllerResponse {
|
|
4
|
-
const BaseResponseSchema: z4.ZodObject<{
|
|
5
|
-
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
6
|
-
code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
|
|
7
|
-
type: z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>;
|
|
8
|
-
message: z4.ZodString;
|
|
9
|
-
results: z4.ZodOptional<z4.ZodUnknown>;
|
|
10
|
-
error: z4.ZodOptional<z4.ZodUnknown>;
|
|
11
|
-
}, z4.core.$strip>;
|
|
12
|
-
type BaseResponse<T = unknown> = z4.infer<typeof BaseResponseSchema> & {
|
|
13
|
-
results?: T;
|
|
14
|
-
};
|
|
15
|
-
export namespace C {
|
|
16
|
-
export const InputSchema: z4.ZodObject<{
|
|
17
|
-
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
18
|
-
code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
|
|
19
|
-
type: z4.ZodDefault<z4.ZodOptional<z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>>>;
|
|
20
|
-
message: z4.ZodOptional<z4.ZodString>;
|
|
21
|
-
results: z4.ZodAny;
|
|
22
|
-
c: z4.ZodCustom<Context<any, any, {}>, Context<any, any, {}>>;
|
|
23
|
-
}, z4.core.$strip>;
|
|
24
|
-
export type Input<T = unknown> = z4.infer<typeof InputSchema> & {
|
|
25
|
-
results?: T;
|
|
26
|
-
};
|
|
27
|
-
export type Output<T = unknown> = BaseResponse<T>;
|
|
28
|
-
const FileResponseParamsSchema: z4.ZodObject<{
|
|
29
|
-
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
30
|
-
message: z4.ZodOptional<z4.ZodString>;
|
|
31
|
-
file_buffer: z4.ZodUnion<readonly [z4.ZodCustom<Blob, Blob>, z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>;
|
|
32
|
-
content_type: z4.ZodString;
|
|
33
|
-
filename: z4.ZodOptional<z4.ZodString>;
|
|
34
|
-
c: z4.ZodOptional<z4.ZodCustom<Context<any, any, {}>, Context<any, any, {}>>>;
|
|
35
|
-
}, z4.core.$strip>;
|
|
36
|
-
export type FileResponseParams = z4.infer<typeof FileResponseParamsSchema>;
|
|
37
|
-
export {};
|
|
38
|
-
}
|
|
39
|
-
export namespace Error {
|
|
40
|
-
const InputSchema: z4.ZodObject<{
|
|
41
|
-
message: z4.ZodOptional<z4.ZodString>;
|
|
42
|
-
results: z4.ZodOptional<z4.ZodUnion<readonly [z4.ZodArray<z4.ZodUnknown>, z4.ZodUnknown]>>;
|
|
43
|
-
type: z4.ZodDefault<z4.ZodOptional<z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>>>;
|
|
44
|
-
code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
|
|
45
|
-
status: z4.ZodDefault<z4.ZodOptional<z4.ZodNumber>>;
|
|
46
|
-
}, z4.core.$strip>;
|
|
47
|
-
type Input<T = unknown> = z4.infer<typeof InputSchema> & {
|
|
48
|
-
results?: T;
|
|
49
|
-
};
|
|
50
|
-
type Output<T = unknown> = BaseResponse<T>;
|
|
51
|
-
}
|
|
52
|
-
export {};
|
|
53
|
-
}
|
|
54
|
-
export default TypeControllerResponse;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Context as HonoContext } from "hono";
|
|
2
|
-
import type { D1Database, Fetcher } from "@cloudflare/workers-types";
|
|
3
|
-
import TypeControllerUsuario from "./controller/type_controller_usuario";
|
|
4
|
-
import TypeControlerAutheticator from "./controller/type_controller_authenticator";
|
|
5
|
-
import TypeControllerCodigoOtp from "./controller/type_codigo_verificacao_otp";
|
|
6
|
-
import { TypesCore } from "@navservice/core";
|
|
7
|
-
import TypeResponse from "./geral/type_response";
|
|
8
|
-
declare namespace t {
|
|
9
|
-
namespace Controller {
|
|
10
|
-
export import Usuario = TypeControllerUsuario;
|
|
11
|
-
export import Autheticator = TypeControlerAutheticator;
|
|
12
|
-
export import CodigoOtp = TypeControllerCodigoOtp;
|
|
13
|
-
}
|
|
14
|
-
namespace Geral {
|
|
15
|
-
export import Response = TypeResponse;
|
|
16
|
-
namespace FormularioZod {
|
|
17
|
-
interface Describe {
|
|
18
|
-
label?: string;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
type?: "text" | "password" | "number" | "select";
|
|
21
|
-
icon?: string;
|
|
22
|
-
searchable?: boolean;
|
|
23
|
-
helpText?: string;
|
|
24
|
-
options?: Array<{
|
|
25
|
-
label: string;
|
|
26
|
-
value: string;
|
|
27
|
-
}>;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
type Ambiente = "sandbox" | "producao" | "localhost";
|
|
32
|
-
}
|
|
33
|
-
type Env = {
|
|
34
|
-
Bindings: {
|
|
35
|
-
PUBLIC_GOOGLE_CLIENT_ID_AUTH0?: string;
|
|
36
|
-
PUBLIC_BASE_URL_SERVICE_USUARIO?: string;
|
|
37
|
-
CORS_ORIGIN?: string;
|
|
38
|
-
JSON_WEB_TOKEN_AUTH_USER?: string;
|
|
39
|
-
GOOGLE_CLIENT_ID_AUTH0?: string;
|
|
40
|
-
RESEND_API_KEY?: string;
|
|
41
|
-
DB_SERVICE_USUARIO?: D1Database;
|
|
42
|
-
ASSETS?: Fetcher;
|
|
43
|
-
};
|
|
44
|
-
Variables: {
|
|
45
|
-
usuario_auth: TypesCore.Controller.Usuario.TokenPayload;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
type Context = HonoContext<Env>;
|
|
49
|
-
}
|
|
50
|
-
export default t;
|