@navservice/pages 1.4.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/backend/schema/_enum.d.ts +11 -0
- package/build/es/biblioteca/src/componentes/button/ButtonAddLandinPage.d.ts +5 -0
- package/build/es/biblioteca/src/componentes/card/CardLandingPage.d.ts +6 -0
- package/build/es/biblioteca/src/componentes/card/CardPromptHistorico.d.ts +8 -0
- package/build/es/biblioteca/src/componentes/drawer/DraweFullScreen.d.ts +12 -0
- package/build/es/biblioteca/src/componentes/drawer/DrawerPadrao.d.ts +13 -0
- package/build/es/biblioteca/src/componentes/formulario/Dominio.d.ts +5 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/Configuracao.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/Contexto.d.ts +12 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/Criacao.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/Design.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/Implementacoes.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/formulario/Landingpage/index.d.ts +5 -0
- package/build/es/biblioteca/src/componentes/input/InputChat.d.ts +6 -0
- package/build/es/biblioteca/src/contexto/contexto_dominio.d.ts +26 -0
- package/build/es/biblioteca/src/contexto/contexto_landing_page.d.ts +36 -0
- package/build/es/biblioteca/src/contexto/contexto_prompt.d.ts +36 -0
- package/build/es/biblioteca/src/index.d.ts +8 -0
- package/build/es/index.js +26608 -0
- package/build/es/index.js.LICENSE.txt +6 -0
- package/build/es/shared/configuracoes/_sistema.d.ts +49 -0
- package/build/es/shared/configuracoes/_theme.d.ts +91 -0
- package/build/es/shared/configuracoes/index.d.ts +142 -0
- package/build/es/shared/types/entidades/dominio.d.ts +77 -0
- package/build/es/shared/types/entidades/landingpage.d.ts +134 -0
- package/build/es/shared/types/entidades/prompt.d.ts +138 -0
- package/build/es/shared/types/geral/type_response.d.ts +54 -0
- package/build/es/shared/types/index.d.ts +44 -0
- package/build/lib/backend/schema/_enum.d.ts +11 -0
- package/build/lib/biblioteca/src/componentes/button/ButtonAddLandinPage.d.ts +5 -0
- package/build/lib/biblioteca/src/componentes/card/CardLandingPage.d.ts +6 -0
- package/build/lib/biblioteca/src/componentes/card/CardPromptHistorico.d.ts +8 -0
- package/build/lib/biblioteca/src/componentes/drawer/DraweFullScreen.d.ts +12 -0
- package/build/lib/biblioteca/src/componentes/drawer/DrawerPadrao.d.ts +13 -0
- package/build/lib/biblioteca/src/componentes/formulario/Dominio.d.ts +5 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/Configuracao.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/Contexto.d.ts +12 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/Criacao.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/Design.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/Implementacoes.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/formulario/Landingpage/index.d.ts +5 -0
- package/build/lib/biblioteca/src/componentes/input/InputChat.d.ts +6 -0
- package/build/lib/biblioteca/src/contexto/contexto_dominio.d.ts +26 -0
- package/build/lib/biblioteca/src/contexto/contexto_landing_page.d.ts +36 -0
- package/build/lib/biblioteca/src/contexto/contexto_prompt.d.ts +36 -0
- package/build/lib/biblioteca/src/index.d.ts +8 -0
- package/build/lib/index.js +37842 -0
- package/build/lib/shared/configuracoes/_sistema.d.ts +49 -0
- package/build/lib/shared/configuracoes/_theme.d.ts +91 -0
- package/build/lib/shared/configuracoes/index.d.ts +142 -0
- package/build/lib/shared/types/entidades/dominio.d.ts +77 -0
- package/build/lib/shared/types/entidades/landingpage.d.ts +134 -0
- package/build/lib/shared/types/entidades/prompt.d.ts +138 -0
- package/build/lib/shared/types/geral/type_response.d.ts +54 -0
- package/build/lib/shared/types/index.d.ts +44 -0
- package/package.json +31 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const _theme: {
|
|
2
|
+
extend: {
|
|
3
|
+
colors: {
|
|
4
|
+
primary: {
|
|
5
|
+
50: string;
|
|
6
|
+
100: string;
|
|
7
|
+
200: string;
|
|
8
|
+
300: string;
|
|
9
|
+
400: string;
|
|
10
|
+
500: string;
|
|
11
|
+
600: string;
|
|
12
|
+
700: string;
|
|
13
|
+
800: string;
|
|
14
|
+
900: string;
|
|
15
|
+
950: string;
|
|
16
|
+
};
|
|
17
|
+
standard: {
|
|
18
|
+
50: string;
|
|
19
|
+
100: string;
|
|
20
|
+
200: string;
|
|
21
|
+
300: string;
|
|
22
|
+
400: string;
|
|
23
|
+
500: string;
|
|
24
|
+
600: string;
|
|
25
|
+
700: string;
|
|
26
|
+
800: string;
|
|
27
|
+
900: string;
|
|
28
|
+
950: string;
|
|
29
|
+
};
|
|
30
|
+
basic: {
|
|
31
|
+
50: string;
|
|
32
|
+
100: string;
|
|
33
|
+
200: string;
|
|
34
|
+
300: string;
|
|
35
|
+
400: string;
|
|
36
|
+
500: string;
|
|
37
|
+
600: string;
|
|
38
|
+
700: string;
|
|
39
|
+
800: string;
|
|
40
|
+
900: string;
|
|
41
|
+
950: string;
|
|
42
|
+
};
|
|
43
|
+
default: {
|
|
44
|
+
50: string;
|
|
45
|
+
100: string;
|
|
46
|
+
200: string;
|
|
47
|
+
300: string;
|
|
48
|
+
400: string;
|
|
49
|
+
500: string;
|
|
50
|
+
600: string;
|
|
51
|
+
700: string;
|
|
52
|
+
800: string;
|
|
53
|
+
900: string;
|
|
54
|
+
950: string;
|
|
55
|
+
};
|
|
56
|
+
error: {
|
|
57
|
+
50: string;
|
|
58
|
+
100: string;
|
|
59
|
+
200: string;
|
|
60
|
+
300: string;
|
|
61
|
+
400: string;
|
|
62
|
+
500: string;
|
|
63
|
+
600: string;
|
|
64
|
+
700: string;
|
|
65
|
+
800: string;
|
|
66
|
+
900: string;
|
|
67
|
+
950: string;
|
|
68
|
+
};
|
|
69
|
+
success: {
|
|
70
|
+
50: string;
|
|
71
|
+
100: string;
|
|
72
|
+
200: string;
|
|
73
|
+
300: string;
|
|
74
|
+
400: string;
|
|
75
|
+
500: string;
|
|
76
|
+
600: string;
|
|
77
|
+
700: string;
|
|
78
|
+
800: string;
|
|
79
|
+
900: string;
|
|
80
|
+
950: string;
|
|
81
|
+
};
|
|
82
|
+
theme: {
|
|
83
|
+
bg: string;
|
|
84
|
+
text: string;
|
|
85
|
+
card: string;
|
|
86
|
+
border: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export default _theme;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
declare const shared_configuracoes: {
|
|
2
|
+
new (): {};
|
|
3
|
+
sistema: {
|
|
4
|
+
empresa: {
|
|
5
|
+
nome: string;
|
|
6
|
+
email_suporte: string;
|
|
7
|
+
email_no_replay: string;
|
|
8
|
+
razaoSocial: string;
|
|
9
|
+
cnpj: string;
|
|
10
|
+
inscricaoEstadual: string;
|
|
11
|
+
inscricaoMunicipal: string;
|
|
12
|
+
endereco: {
|
|
13
|
+
logradouro: string;
|
|
14
|
+
numero: string;
|
|
15
|
+
complemento: string;
|
|
16
|
+
bairro: string;
|
|
17
|
+
cidade: string;
|
|
18
|
+
estado: string;
|
|
19
|
+
cep: string;
|
|
20
|
+
pais: string;
|
|
21
|
+
};
|
|
22
|
+
contato: {
|
|
23
|
+
telefone: string;
|
|
24
|
+
celular: string;
|
|
25
|
+
email: string;
|
|
26
|
+
site: string;
|
|
27
|
+
};
|
|
28
|
+
dadosBancarios: {
|
|
29
|
+
banco: string;
|
|
30
|
+
agencia: string;
|
|
31
|
+
conta: string;
|
|
32
|
+
tipoConta: string;
|
|
33
|
+
pix: string;
|
|
34
|
+
};
|
|
35
|
+
responsavel: {
|
|
36
|
+
nome: string;
|
|
37
|
+
cpf: string;
|
|
38
|
+
cargo: string;
|
|
39
|
+
email: string;
|
|
40
|
+
};
|
|
41
|
+
configuracoes: {
|
|
42
|
+
ativo: boolean;
|
|
43
|
+
dataFundacao: string;
|
|
44
|
+
regimeTributario: string;
|
|
45
|
+
ramoAtividade: string;
|
|
46
|
+
cnae: string;
|
|
47
|
+
porteEmpresa: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
theme: {
|
|
52
|
+
extend: {
|
|
53
|
+
colors: {
|
|
54
|
+
primary: {
|
|
55
|
+
50: string;
|
|
56
|
+
100: string;
|
|
57
|
+
200: string;
|
|
58
|
+
300: string;
|
|
59
|
+
400: string;
|
|
60
|
+
500: string;
|
|
61
|
+
600: string;
|
|
62
|
+
700: string;
|
|
63
|
+
800: string;
|
|
64
|
+
900: string;
|
|
65
|
+
950: string;
|
|
66
|
+
};
|
|
67
|
+
standard: {
|
|
68
|
+
50: string;
|
|
69
|
+
100: string;
|
|
70
|
+
200: string;
|
|
71
|
+
300: string;
|
|
72
|
+
400: string;
|
|
73
|
+
500: string;
|
|
74
|
+
600: string;
|
|
75
|
+
700: string;
|
|
76
|
+
800: string;
|
|
77
|
+
900: string;
|
|
78
|
+
950: string;
|
|
79
|
+
};
|
|
80
|
+
basic: {
|
|
81
|
+
50: string;
|
|
82
|
+
100: string;
|
|
83
|
+
200: string;
|
|
84
|
+
300: string;
|
|
85
|
+
400: string;
|
|
86
|
+
500: string;
|
|
87
|
+
600: string;
|
|
88
|
+
700: string;
|
|
89
|
+
800: string;
|
|
90
|
+
900: string;
|
|
91
|
+
950: string;
|
|
92
|
+
};
|
|
93
|
+
default: {
|
|
94
|
+
50: string;
|
|
95
|
+
100: string;
|
|
96
|
+
200: string;
|
|
97
|
+
300: string;
|
|
98
|
+
400: string;
|
|
99
|
+
500: string;
|
|
100
|
+
600: string;
|
|
101
|
+
700: string;
|
|
102
|
+
800: string;
|
|
103
|
+
900: string;
|
|
104
|
+
950: string;
|
|
105
|
+
};
|
|
106
|
+
error: {
|
|
107
|
+
50: string;
|
|
108
|
+
100: string;
|
|
109
|
+
200: string;
|
|
110
|
+
300: string;
|
|
111
|
+
400: string;
|
|
112
|
+
500: string;
|
|
113
|
+
600: string;
|
|
114
|
+
700: string;
|
|
115
|
+
800: string;
|
|
116
|
+
900: string;
|
|
117
|
+
950: string;
|
|
118
|
+
};
|
|
119
|
+
success: {
|
|
120
|
+
50: string;
|
|
121
|
+
100: string;
|
|
122
|
+
200: string;
|
|
123
|
+
300: string;
|
|
124
|
+
400: string;
|
|
125
|
+
500: string;
|
|
126
|
+
600: string;
|
|
127
|
+
700: string;
|
|
128
|
+
800: string;
|
|
129
|
+
900: string;
|
|
130
|
+
950: string;
|
|
131
|
+
};
|
|
132
|
+
theme: {
|
|
133
|
+
bg: string;
|
|
134
|
+
text: string;
|
|
135
|
+
card: string;
|
|
136
|
+
border: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export default shared_configuracoes;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AxiosResponse } from "axios";
|
|
2
|
+
import t from "..";
|
|
3
|
+
import z4 from "zod/v4";
|
|
4
|
+
declare namespace TypesDominio {
|
|
5
|
+
const LandingPageDominioBaseSchema: z4.ZodObject<{
|
|
6
|
+
_id: z4.ZodUUID;
|
|
7
|
+
landing_page_id: z4.ZodUUID;
|
|
8
|
+
dominio: z4.ZodString;
|
|
9
|
+
pages_domain_id: z4.ZodNullable<z4.ZodString>;
|
|
10
|
+
status: z4.ZodEnum<{
|
|
11
|
+
error: "error";
|
|
12
|
+
initializing: "initializing";
|
|
13
|
+
pending: "pending";
|
|
14
|
+
active: "active";
|
|
15
|
+
deactivated: "deactivated";
|
|
16
|
+
blocked: "blocked";
|
|
17
|
+
}>;
|
|
18
|
+
erro: z4.ZodNullable<z4.ZodString>;
|
|
19
|
+
data_validacao: z4.ZodNullable<z4.ZodNumber>;
|
|
20
|
+
data_criacao: z4.ZodNumber;
|
|
21
|
+
data_atualizacao: z4.ZodNullable<z4.ZodNumber>;
|
|
22
|
+
}, z4.core.$strip>;
|
|
23
|
+
type DominioBase = z4.infer<typeof LandingPageDominioBaseSchema>;
|
|
24
|
+
namespace Criar {
|
|
25
|
+
const route: "/api/landing_page/dominio";
|
|
26
|
+
const InputSchema: z4.ZodObject<{
|
|
27
|
+
data: z4.ZodObject<{
|
|
28
|
+
dominio: z4.ZodObject<{
|
|
29
|
+
landing_page_id: z4.ZodUUID;
|
|
30
|
+
dominio: z4.ZodString;
|
|
31
|
+
}, z4.core.$strip>;
|
|
32
|
+
}, z4.core.$strip>;
|
|
33
|
+
}, z4.core.$strip>;
|
|
34
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
35
|
+
type Output = {
|
|
36
|
+
data: {
|
|
37
|
+
dominio: DominioBase;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
41
|
+
}
|
|
42
|
+
namespace BuscarPeloLandingPageId {
|
|
43
|
+
const route: "/api/landing_page/:id/dominio";
|
|
44
|
+
const InputSchema: z4.ZodObject<{
|
|
45
|
+
data: z4.ZodObject<{
|
|
46
|
+
dominio: z4.ZodObject<{
|
|
47
|
+
landing_page_id: z4.ZodUUID;
|
|
48
|
+
}, z4.core.$strip>;
|
|
49
|
+
}, z4.core.$strip>;
|
|
50
|
+
}, z4.core.$strip>;
|
|
51
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
52
|
+
type Output = {
|
|
53
|
+
data: {
|
|
54
|
+
dominio: DominioBase[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
58
|
+
}
|
|
59
|
+
namespace DeletarPeloId {
|
|
60
|
+
const route: "/api/landing_page/dominio/:id";
|
|
61
|
+
const InputSchema: z4.ZodObject<{
|
|
62
|
+
data: z4.ZodObject<{
|
|
63
|
+
dominio: z4.ZodObject<{
|
|
64
|
+
_id: z4.ZodUUID;
|
|
65
|
+
}, z4.core.$strip>;
|
|
66
|
+
}, z4.core.$strip>;
|
|
67
|
+
}, z4.core.$strip>;
|
|
68
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
69
|
+
type Output = {
|
|
70
|
+
data: {
|
|
71
|
+
dominio: DominioBase;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export default TypesDominio;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { AxiosResponse } from "axios";
|
|
2
|
+
import t from "..";
|
|
3
|
+
import z4 from "zod/v4";
|
|
4
|
+
declare namespace TypesLandingPage {
|
|
5
|
+
const LandingPageBaseSchema: z4.ZodObject<{
|
|
6
|
+
_id: z4.ZodUUID;
|
|
7
|
+
usuario_id: z4.ZodUUID;
|
|
8
|
+
usuario_tipo: z4.ZodEnum<{
|
|
9
|
+
padrao: "padrao";
|
|
10
|
+
}>;
|
|
11
|
+
app: z4.ZodEnum<{
|
|
12
|
+
"service-usuario": "service-usuario";
|
|
13
|
+
"service-financeiro": "service-financeiro";
|
|
14
|
+
"service-pages-ai": "service-pages-ai";
|
|
15
|
+
"service-assinatura": "service-assinatura";
|
|
16
|
+
}>;
|
|
17
|
+
titulo: z4.ZodString;
|
|
18
|
+
dominio: z4.ZodString;
|
|
19
|
+
data_criacao: z4.ZodNumber;
|
|
20
|
+
data_atualizacao: z4.ZodNullable<z4.ZodNumber>;
|
|
21
|
+
}, z4.core.$strip>;
|
|
22
|
+
type LandingPageBase = z4.infer<typeof LandingPageBaseSchema>;
|
|
23
|
+
namespace Criar {
|
|
24
|
+
const route: "/api/landing_page";
|
|
25
|
+
const InputSchema: z4.ZodObject<{
|
|
26
|
+
data: z4.ZodObject<{
|
|
27
|
+
landing_page: z4.ZodObject<{
|
|
28
|
+
prompt_input: z4.ZodString;
|
|
29
|
+
}, z4.core.$strip>;
|
|
30
|
+
}, z4.core.$strip>;
|
|
31
|
+
}, z4.core.$strict>;
|
|
32
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
33
|
+
type Output = {
|
|
34
|
+
data: {
|
|
35
|
+
landing_page: LandingPageBase;
|
|
36
|
+
prompt: t.Controller.Prompt.Criar.Output["data"]["prompt"];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
40
|
+
}
|
|
41
|
+
namespace EditarPagina {
|
|
42
|
+
const route: "/api/landing_page/prompt/:id";
|
|
43
|
+
const InputSchema: z4.ZodObject<{
|
|
44
|
+
data: z4.ZodObject<{
|
|
45
|
+
landing_page: z4.ZodObject<{
|
|
46
|
+
prompt_id: z4.ZodUUID;
|
|
47
|
+
prompt_input: z4.ZodString;
|
|
48
|
+
}, z4.core.$strip>;
|
|
49
|
+
}, z4.core.$strip>;
|
|
50
|
+
}, z4.core.$strict>;
|
|
51
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
52
|
+
type Output = {
|
|
53
|
+
data: {
|
|
54
|
+
prompt: t.Controller.Prompt.Criar.Output["data"]["prompt"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
58
|
+
}
|
|
59
|
+
namespace BuscarPeloFiltro {
|
|
60
|
+
const route: "/api/landing_page";
|
|
61
|
+
const InputSchema: z4.ZodObject<{
|
|
62
|
+
filtros: z4.ZodObject<{
|
|
63
|
+
landing_page: z4.ZodObject<{
|
|
64
|
+
pagina: z4.ZodNumber;
|
|
65
|
+
_id: z4.ZodOptional<z4.ZodUUID>;
|
|
66
|
+
}, z4.core.$strip>;
|
|
67
|
+
}, z4.core.$strip>;
|
|
68
|
+
}, z4.core.$strip>;
|
|
69
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
70
|
+
type Output = {
|
|
71
|
+
data: {
|
|
72
|
+
paginacao: {
|
|
73
|
+
total_itens: number;
|
|
74
|
+
total_paginas: number;
|
|
75
|
+
itens_por_pagina: number;
|
|
76
|
+
total_itens_pagina_atual: number;
|
|
77
|
+
pagina_atual: number;
|
|
78
|
+
};
|
|
79
|
+
landing_page: LandingPageBase[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
83
|
+
}
|
|
84
|
+
namespace BuscarPeloId {
|
|
85
|
+
const route: "/api/landing_page/:id";
|
|
86
|
+
const InputSchema: z4.ZodObject<{
|
|
87
|
+
data: z4.ZodObject<{
|
|
88
|
+
landing_page: z4.ZodObject<{
|
|
89
|
+
_id: z4.ZodUUID;
|
|
90
|
+
}, z4.core.$strip>;
|
|
91
|
+
}, z4.core.$strip>;
|
|
92
|
+
}, z4.core.$strip>;
|
|
93
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
94
|
+
type Output = {
|
|
95
|
+
data: {
|
|
96
|
+
landing_page: LandingPageBase;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
100
|
+
}
|
|
101
|
+
namespace AtualizarPeloId {
|
|
102
|
+
const route: "/api/landing_page/:id";
|
|
103
|
+
const InputSchema: z4.ZodObject<{
|
|
104
|
+
data: z4.ZodObject<{
|
|
105
|
+
landing_page: z4.ZodObject<{
|
|
106
|
+
_id: z4.ZodUUID;
|
|
107
|
+
titulo: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
108
|
+
dominio: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
109
|
+
}, z4.core.$strip>;
|
|
110
|
+
}, z4.core.$strip>;
|
|
111
|
+
}, z4.core.$strip>;
|
|
112
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
113
|
+
type Output = {
|
|
114
|
+
data: {
|
|
115
|
+
landing_page: LandingPageBase;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
119
|
+
}
|
|
120
|
+
namespace DeletarPeloId {
|
|
121
|
+
const route: "/api/landing_page/:id";
|
|
122
|
+
const InputSchema: z4.ZodObject<{
|
|
123
|
+
data: z4.ZodObject<{
|
|
124
|
+
landing_page: z4.ZodObject<{
|
|
125
|
+
_id: z4.ZodUUID;
|
|
126
|
+
}, z4.core.$strip>;
|
|
127
|
+
}, z4.core.$strip>;
|
|
128
|
+
}, z4.core.$strip>;
|
|
129
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
130
|
+
type Output = Input;
|
|
131
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export default TypesLandingPage;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { AxiosResponse } from "axios";
|
|
2
|
+
import OpenAiAgent from "openai";
|
|
3
|
+
import t from "..";
|
|
4
|
+
import z4 from "zod/v4";
|
|
5
|
+
declare namespace TypesPrompt {
|
|
6
|
+
const PromptBaseSchema: z4.ZodObject<{
|
|
7
|
+
_id: z4.ZodUUID;
|
|
8
|
+
landing_page_id: z4.ZodUUID;
|
|
9
|
+
prompt_input: z4.ZodString;
|
|
10
|
+
prompt_output: z4.ZodNullable<z4.ZodString>;
|
|
11
|
+
data_criacao: z4.ZodNumber;
|
|
12
|
+
data_atualizacao: z4.ZodNullable<z4.ZodNumber>;
|
|
13
|
+
deploy_app: z4.ZodBoolean;
|
|
14
|
+
deploy_url: z4.ZodNullable<z4.ZodOptional<z4.ZodString>>;
|
|
15
|
+
deploy_branch: z4.ZodEnum<{
|
|
16
|
+
preview: "preview";
|
|
17
|
+
production: "production";
|
|
18
|
+
}>;
|
|
19
|
+
deploy_status: z4.ZodEnum<{
|
|
20
|
+
completed: "completed";
|
|
21
|
+
failed: "failed";
|
|
22
|
+
in_progress: "in_progress";
|
|
23
|
+
cancelled: "cancelled";
|
|
24
|
+
queued: "queued";
|
|
25
|
+
incomplete: "incomplete";
|
|
26
|
+
waiting: "waiting";
|
|
27
|
+
}>;
|
|
28
|
+
model: z4.ZodNullable<z4.ZodString>;
|
|
29
|
+
ai_status: z4.ZodEnum<{
|
|
30
|
+
completed: "completed";
|
|
31
|
+
failed: "failed";
|
|
32
|
+
in_progress: "in_progress";
|
|
33
|
+
cancelled: "cancelled";
|
|
34
|
+
queued: "queued";
|
|
35
|
+
incomplete: "incomplete";
|
|
36
|
+
waiting: "waiting";
|
|
37
|
+
}>;
|
|
38
|
+
created_at: z4.ZodNullable<z4.ZodInt>;
|
|
39
|
+
completed_at: z4.ZodNullable<z4.ZodInt>;
|
|
40
|
+
input_tokens: z4.ZodNullable<z4.ZodInt>;
|
|
41
|
+
output_tokens: z4.ZodNullable<z4.ZodInt>;
|
|
42
|
+
total_tokens: z4.ZodNullable<z4.ZodInt>;
|
|
43
|
+
}, z4.core.$strip>;
|
|
44
|
+
type PromptBase = z4.infer<typeof PromptBaseSchema>;
|
|
45
|
+
namespace Criar {
|
|
46
|
+
const route: "/api/prompt";
|
|
47
|
+
const InputSchema: z4.ZodObject<{
|
|
48
|
+
data: z4.ZodObject<{
|
|
49
|
+
prompt: z4.ZodObject<{
|
|
50
|
+
role_system: z4.ZodString;
|
|
51
|
+
role_developer: z4.ZodString;
|
|
52
|
+
role_assistant: z4.ZodDefault<z4.ZodOptional<z4.ZodString>>;
|
|
53
|
+
role_user: z4.ZodString;
|
|
54
|
+
landing_page_id: z4.ZodUUID;
|
|
55
|
+
}, z4.core.$strip>;
|
|
56
|
+
}, z4.core.$strip>;
|
|
57
|
+
}, z4.core.$strip>;
|
|
58
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
59
|
+
type Output = {
|
|
60
|
+
data: {
|
|
61
|
+
prompt: PromptBase;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
65
|
+
}
|
|
66
|
+
namespace QueueAgenteIa {
|
|
67
|
+
const InputSchema: z4.ZodObject<{
|
|
68
|
+
factory: z4.ZodLiteral<"use_case_queue_agente_ia">;
|
|
69
|
+
prompt_id: z4.ZodUUID;
|
|
70
|
+
role_system: z4.ZodString;
|
|
71
|
+
role_assistant: z4.ZodDefault<z4.ZodOptional<z4.ZodString>>;
|
|
72
|
+
role_user: z4.ZodString;
|
|
73
|
+
role_developer: z4.ZodString;
|
|
74
|
+
landing_page_id: z4.ZodUUID;
|
|
75
|
+
}, z4.core.$strip>;
|
|
76
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
77
|
+
type Output = OpenAiAgent.Responses.Response & {
|
|
78
|
+
_request_id?: string | null;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
namespace BuscarPeloFiltro {
|
|
82
|
+
const route: "/api/prompt";
|
|
83
|
+
const InputSchema: z4.ZodObject<{
|
|
84
|
+
data: z4.ZodObject<{
|
|
85
|
+
prompt: z4.ZodObject<{
|
|
86
|
+
pagina: z4.ZodNumber;
|
|
87
|
+
landing_page_id: z4.ZodOptional<z4.ZodUUID>;
|
|
88
|
+
}, z4.core.$strip>;
|
|
89
|
+
}, z4.core.$strip>;
|
|
90
|
+
}, z4.core.$strip>;
|
|
91
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
92
|
+
type Output = {
|
|
93
|
+
data: {
|
|
94
|
+
prompt: PromptBase[];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
98
|
+
}
|
|
99
|
+
namespace BuscarPeloId {
|
|
100
|
+
const route: "/api/prompt/:id";
|
|
101
|
+
const InputSchema: z4.ZodObject<{
|
|
102
|
+
data: z4.ZodObject<{
|
|
103
|
+
prompt: z4.ZodObject<{
|
|
104
|
+
_id: z4.ZodUUID;
|
|
105
|
+
}, z4.core.$strip>;
|
|
106
|
+
}, z4.core.$strip>;
|
|
107
|
+
}, z4.core.$strip>;
|
|
108
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
109
|
+
type Output = {
|
|
110
|
+
data: {
|
|
111
|
+
prompt: PromptBase;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
115
|
+
}
|
|
116
|
+
namespace GerarBuildPeloId {
|
|
117
|
+
const route: "/api/prompt/build";
|
|
118
|
+
const InputSchema: z4.ZodObject<{
|
|
119
|
+
data: z4.ZodObject<{
|
|
120
|
+
prompt: z4.ZodObject<{
|
|
121
|
+
_id: z4.ZodUUID;
|
|
122
|
+
deploy_branch: z4.ZodEnum<{
|
|
123
|
+
preview: "preview";
|
|
124
|
+
production: "production";
|
|
125
|
+
}>;
|
|
126
|
+
}, z4.core.$strip>;
|
|
127
|
+
}, z4.core.$strip>;
|
|
128
|
+
}, z4.core.$strip>;
|
|
129
|
+
type Input = z4.infer<typeof InputSchema>;
|
|
130
|
+
type Output = {
|
|
131
|
+
data: {
|
|
132
|
+
prompt: PromptBase;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export default TypesPrompt;
|