@greatapps/greatagents 0.0.1 → 0.1.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/package.json +1 -1
- package/scripts/README.md +272 -0
- package/scripts/agents/create_table.sql +46 -0
- package/scripts/channels/create_table.sql +48 -0
- package/scripts/companies/create_table.sql +49 -0
- package/scripts/conversations/add_messages_reference.sql +42 -0
- package/scripts/conversations/create_table.sql +55 -0
- package/scripts/conversations_tags/create_table.sql +39 -0
- package/scripts/credentials/create_table.sql +63 -0
- package/scripts/leads/create_table.sql +63 -0
- package/scripts/leads_channels/create_table.sql +41 -0
- package/scripts/leads_tags/create_table.sql +39 -0
- package/scripts/messages/create_table.sql +44 -0
- package/scripts/missions/create_table.sql +43 -0
- package/scripts/objectives/create_table.sql +49 -0
- package/scripts/objectives_tools/create_table.sql +52 -0
- package/scripts/tags/create_table.sql +38 -0
- package/scripts/tools/create_table.sql +43 -0
- package/src/modules/{projects → agents}/index.js +2 -2
- package/src/modules/agents/properties.js +155 -0
- package/src/modules/{pages_blocks_folders → channels}/index.js +2 -2
- package/src/modules/channels/properties.js +149 -0
- package/src/modules/{experiments → companies}/index.js +3 -3
- package/src/modules/companies/properties.js +149 -0
- package/src/modules/conversations/index.js +10 -0
- package/src/modules/conversations/properties.js +179 -0
- package/src/modules/conversations_tags/index.js +10 -0
- package/src/modules/{pages_blocks_folders → conversations_tags}/properties.js +33 -39
- package/src/modules/credentials/index.js +10 -0
- package/src/modules/credentials/properties.js +270 -0
- package/src/modules/leads/index.js +10 -0
- package/src/modules/leads/properties.js +253 -0
- package/src/modules/leads_channels/index.js +10 -0
- package/src/modules/leads_channels/properties.js +104 -0
- package/src/modules/{domains_redirects → leads_tags}/index.js +3 -3
- package/src/modules/{projects_domains → leads_tags}/properties.js +32 -13
- package/src/modules/messages/index.js +10 -0
- package/src/modules/messages/properties.js +114 -0
- package/src/modules/{base_domains → missions}/index.js +3 -3
- package/src/modules/missions/properties.js +115 -0
- package/src/modules/objectives/index.js +10 -0
- package/src/modules/objectives/properties.js +146 -0
- package/src/modules/objectives_tools/index.js +10 -0
- package/src/modules/objectives_tools/properties.js +145 -0
- package/src/modules/{pages → tags}/index.js +2 -2
- package/src/modules/{base_domains → tags}/properties.js +49 -30
- package/src/modules/{domains → tools}/index.js +2 -2
- package/src/modules/tools/properties.js +120 -0
- package/src/product.js +30 -50
- package/src/shared/llmModels.js +17 -0
- package/src/shared/parameters.js +0 -1
- package/src/shared/query.js +0 -2
- package/src/shared/responses.js +0 -2
- package/src/modules/conversions/index.js +0 -12
- package/src/modules/conversions/properties.js +0 -47
- package/src/modules/conversions/responses.js +0 -57
- package/src/modules/conversions/routes.js +0 -120
- package/src/modules/conversions_resume/index.js +0 -10
- package/src/modules/conversions_resume/properties.js +0 -46
- package/src/modules/domains/properties.js +0 -75
- package/src/modules/domains_redirects/properties.js +0 -64
- package/src/modules/experiments/properties.js +0 -129
- package/src/modules/experiments_variations/index.js +0 -10
- package/src/modules/experiments_variations/properties.js +0 -193
- package/src/modules/integrations_accounts/index.js +0 -11
- package/src/modules/integrations_accounts/properties.js +0 -140
- package/src/modules/integrations_pages_elements/index.js +0 -12
- package/src/modules/integrations_pages_elements/properties.js +0 -283
- package/src/modules/pages/properties.js +0 -170
- package/src/modules/pages_blocks_models/index.js +0 -12
- package/src/modules/pages_blocks_models/properties.js +0 -91
- package/src/modules/pages_editor_photos/index.js +0 -10
- package/src/modules/pages_editor_photos/properties.js +0 -138
- package/src/modules/pages_editor_photos_folders/index.js +0 -10
- package/src/modules/pages_editor_photos_folders/properties.js +0 -92
- package/src/modules/projects/properties.js +0 -120
- package/src/modules/projects_domains/index.js +0 -10
- package/src/modules/projects_users/index.js +0 -10
- package/src/modules/projects_users/properties.js +0 -66
- package/src/modules/templates/index.js +0 -10
- package/src/modules/templates/properties.js +0 -86
- package/src/modules/templates_blocks/index.js +0 -10
- package/src/modules/templates_blocks/properties.js +0 -76
- package/src/modules/templates_blocks_folders/index.js +0 -11
- package/src/modules/templates_blocks_folders/properties.js +0 -54
- package/src/modules/templates_categories/index.js +0 -12
- package/src/modules/templates_categories/properties.js +0 -100
- package/src/modules/templates_categories_links/index.js +0 -12
- package/src/modules/templates_categories_links/properties.js +0 -63
- package/src/modules/templates_groups/index.js +0 -11
- package/src/modules/templates_groups/properties.js +0 -42
- package/src/modules/views/index.js +0 -12
- package/src/modules/views/properties.js +0 -44
- package/src/modules/views/responses.js +0 -57
- package/src/modules/views/routes.js +0 -56
- package/src/modules/views_resume/index.js +0 -10
- package/src/modules/views_resume/properties.js +0 -46
|
@@ -6,56 +6,75 @@ export const properties = {
|
|
|
6
6
|
autoIncrement: true,
|
|
7
7
|
index: true
|
|
8
8
|
},
|
|
9
|
-
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
10
29
|
type: "number",
|
|
11
30
|
required: true,
|
|
12
31
|
updatable: false,
|
|
13
32
|
filterable: true,
|
|
14
|
-
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
15
39
|
interface: {
|
|
16
40
|
label: {
|
|
17
|
-
"pt-br": "
|
|
18
|
-
"en": "
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
19
43
|
},
|
|
20
44
|
component: "select",
|
|
21
45
|
disabled: true
|
|
22
46
|
}
|
|
23
47
|
},
|
|
24
|
-
|
|
48
|
+
name: {
|
|
25
49
|
type: "string",
|
|
26
50
|
required: true,
|
|
27
|
-
searchable: true,
|
|
28
51
|
filterable: true,
|
|
29
|
-
|
|
52
|
+
searchable: true,
|
|
53
|
+
validation: {
|
|
54
|
+
maxLength: 255
|
|
55
|
+
},
|
|
30
56
|
interface: {
|
|
31
57
|
label: {
|
|
32
|
-
"pt-br": "
|
|
33
|
-
"en": "
|
|
58
|
+
"pt-br": "Nome da tag",
|
|
59
|
+
"en": "Tag name"
|
|
34
60
|
},
|
|
35
|
-
component: "
|
|
61
|
+
component: "string",
|
|
36
62
|
placeholder: {
|
|
37
|
-
"pt-br": "
|
|
38
|
-
"en": "
|
|
63
|
+
"pt-br": "Digite o nome da tag",
|
|
64
|
+
"en": "Enter the tag name"
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
},
|
|
42
|
-
|
|
43
|
-
type: "
|
|
44
|
-
default:
|
|
45
|
-
filterable: true
|
|
46
|
-
},
|
|
47
|
-
datetime_alt: {
|
|
48
|
-
type: "date",
|
|
49
|
-
filterable: true,
|
|
50
|
-
updatable: true
|
|
51
|
-
},
|
|
52
|
-
datetime_del: {
|
|
53
|
-
type: "date",
|
|
54
|
-
filterable: true
|
|
55
|
-
},
|
|
56
|
-
datetime_add: {
|
|
57
|
-
type: "date",
|
|
68
|
+
color: {
|
|
69
|
+
type: "string",
|
|
70
|
+
default: "#000000",
|
|
58
71
|
filterable: true,
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
interface: {
|
|
73
|
+
label: {
|
|
74
|
+
"pt-br": "Cor da tag",
|
|
75
|
+
"en": "Tag color"
|
|
76
|
+
},
|
|
77
|
+
component: "color"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
61
80
|
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
type: "string",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
searchable: true,
|
|
53
|
+
validation: {
|
|
54
|
+
maxLength: 255
|
|
55
|
+
},
|
|
56
|
+
interface: {
|
|
57
|
+
label: {
|
|
58
|
+
"pt-br": "Título da ferramenta",
|
|
59
|
+
"en": "Tool title"
|
|
60
|
+
},
|
|
61
|
+
component: "text",
|
|
62
|
+
placeholder: {
|
|
63
|
+
"pt-br": "Dê um título curto e descritivo para a ferramenta",
|
|
64
|
+
"en": "Give a short and descriptive title for the tool"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
type: {
|
|
69
|
+
type: "string",
|
|
70
|
+
filterable: true,
|
|
71
|
+
default: "mcp",
|
|
72
|
+
options: [
|
|
73
|
+
{ value: "mcp", label: { "pt-br": "MCP", "en": "MCP" } },
|
|
74
|
+
{ value: "a2a", label: { "pt-br": "A2A", "en": "A2A" } },
|
|
75
|
+
{ value: "api", label: { "pt-br": "API", "en": "API" } },
|
|
76
|
+
{ value: "internal-agent", label: { "pt-br": "Agente interno", "en": "Internal agent" } },
|
|
77
|
+
{ value: "internal-function", label: { "pt-br": "Função interna", "en": "Internal function" } },
|
|
78
|
+
{ value: "native-integration", label: { "pt-br": "Integração nativa", "en": "Native integration" } },
|
|
79
|
+
{ value: "knowledge-base", label: { "pt-br": "Base de conhecimento", "en": "Knowledge base" } },
|
|
80
|
+
],
|
|
81
|
+
interface: {
|
|
82
|
+
component: "select",
|
|
83
|
+
label: {
|
|
84
|
+
"pt-br": "Tipo de ferramenta",
|
|
85
|
+
"en": "Tool type"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
description: {
|
|
90
|
+
type: "string",
|
|
91
|
+
filterable: true,
|
|
92
|
+
searchable: true,
|
|
93
|
+
validation: {
|
|
94
|
+
maxLength: 1000
|
|
95
|
+
},
|
|
96
|
+
interface: {
|
|
97
|
+
label: {
|
|
98
|
+
"pt-br": "Descrição da ferramenta",
|
|
99
|
+
"en": "Tool description"
|
|
100
|
+
},
|
|
101
|
+
component: "textarea",
|
|
102
|
+
placeholder: {
|
|
103
|
+
"pt-br": "Descreva a ferramenta e como ela deve ser usada",
|
|
104
|
+
"en": "Describe the tool and how it should be used"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
id_credential: {
|
|
109
|
+
type: "number",
|
|
110
|
+
filterable: true,
|
|
111
|
+
index: true,
|
|
112
|
+
interface: {
|
|
113
|
+
label: {
|
|
114
|
+
"pt-br": "ID da credencial",
|
|
115
|
+
"en": "Credential ID"
|
|
116
|
+
},
|
|
117
|
+
component: "number"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
package/src/product.js
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
/* Modules */
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import pages_editor_photos_folders from './modules/pages_editor_photos_folders/index.js';
|
|
19
|
-
import projects from './modules/projects/index.js';
|
|
20
|
-
import projects_domains from './modules/projects_domains/index.js';
|
|
21
|
-
import projects_users from './modules/projects_users/index.js';
|
|
22
|
-
import templates from './modules/templates/index.js';
|
|
23
|
-
import templates_blocks from './modules/templates_blocks/index.js';
|
|
24
|
-
import templates_blocks_folders from './modules/templates_blocks_folders/index.js';
|
|
25
|
-
import templates_categories from './modules/templates_categories/index.js';
|
|
26
|
-
import templates_categories_links from './modules/templates_categories_links/index.js';
|
|
27
|
-
import templates_groups from './modules/templates_groups/index.js';
|
|
3
|
+
import agents from './modules/agents/index.js';
|
|
4
|
+
import channels from './modules/channels/index.js';
|
|
5
|
+
import companies from './modules/companies/index.js';
|
|
6
|
+
import conversations from './modules/conversations/index.js';
|
|
7
|
+
import conversations_tags from './modules/conversations_tags/index.js';
|
|
8
|
+
import credentials from './modules/credentials/index.js';
|
|
9
|
+
import leads from './modules/leads/index.js';
|
|
10
|
+
import leads_channels from './modules/leads_channels/index.js';
|
|
11
|
+
import leads_tags from './modules/leads_tags/index.js';
|
|
12
|
+
import messages from './modules/messages/index.js';
|
|
13
|
+
import missions from './modules/missions/index.js';
|
|
14
|
+
import objectives from './modules/objectives/index.js';
|
|
15
|
+
import objectives_tools from './modules/objectives_tools/index.js';
|
|
16
|
+
import tags from './modules/tags/index.js';
|
|
17
|
+
import tools from './modules/tools/index.js';
|
|
28
18
|
|
|
29
19
|
/* Shared */
|
|
30
20
|
|
|
@@ -49,31 +39,21 @@ export default {
|
|
|
49
39
|
},
|
|
50
40
|
},
|
|
51
41
|
modules: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
pages_editor_photos_folders,
|
|
68
|
-
projects,
|
|
69
|
-
projects_domains,
|
|
70
|
-
projects_users,
|
|
71
|
-
templates,
|
|
72
|
-
templates_blocks,
|
|
73
|
-
templates_blocks_folders,
|
|
74
|
-
templates_categories,
|
|
75
|
-
templates_categories_links,
|
|
76
|
-
templates_groups
|
|
42
|
+
agents,
|
|
43
|
+
channels,
|
|
44
|
+
companies,
|
|
45
|
+
conversations,
|
|
46
|
+
conversations_tags,
|
|
47
|
+
credentials,
|
|
48
|
+
leads,
|
|
49
|
+
leads_channels,
|
|
50
|
+
leads_tags,
|
|
51
|
+
messages,
|
|
52
|
+
missions,
|
|
53
|
+
objectives,
|
|
54
|
+
objectives_tools,
|
|
55
|
+
tags,
|
|
56
|
+
tools
|
|
77
57
|
},
|
|
78
58
|
documentation: {
|
|
79
59
|
title: "GreatAgents API",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const llmModels = [
|
|
2
|
+
{ value: "gpt-3.5", label: { "pt-br": "GPT-3.5", "en": "GPT-3.5" } },
|
|
3
|
+
{ value: "gpt-4", label: { "pt-br": "GPT-4", "en": "GPT-4" } },
|
|
4
|
+
{ value: "gpt-4o", label: { "pt-br": "GPT-4o", "en": "GPT-4o" } },
|
|
5
|
+
{ value: "gpt-4.1", label: { "pt-br": "GPT-4.1", "en": "GPT-4.1" } },
|
|
6
|
+
{ value: "gpt-5", label: { "pt-br": "GPT-5", "en": "GPT-5" } },
|
|
7
|
+
{ value: "gtp-4 mini", label: { "pt-br": "GPT-4 mini", "en": "GPT-4 mini" } },
|
|
8
|
+
{ value: "gtp-4o mini", label: { "pt-br": "GPT-4o mini", "en": "GPT-4o mini" } },
|
|
9
|
+
{ value: "gpt-4.1 mini", label: { "pt-br": "GPT-4.1 mini", "en": "GPT-4.1 mini" } },
|
|
10
|
+
{ value: "gpt-5 mini", label: { "pt-br": "GPT-5 mini", "en": "GPT-5 mini" } },
|
|
11
|
+
{ value: "gemini-2.0 flash", label: { "pt-br": "Gemini 2.0 Flash", "en": "Gemini 2.0 Flash" } },
|
|
12
|
+
{ value: "gemnini-2.5 pro", label: { "pt-br": "Gemini 2.5 Pro", "en": "Gemini 2.5 Pro" } },
|
|
13
|
+
{ value: "claude-3.7 sonnet", label: { "pt-br": "Claude 3.7 Sonnet", "en": "Claude 3.7 Sonnet" } },
|
|
14
|
+
{ value: "claude-4.0 sonnet", label: { "pt-br": "Claude 4.0 Sonnet", "en": "Claude 4.0 Sonnet" } },
|
|
15
|
+
{ value: "deepseek-v3", label: { "pt-br": "DeepSeek V3", "en": "DeepSeek V3" } },
|
|
16
|
+
{ value: "deepseek-r1", label: { "pt-br": "DeepSeek R1", "en": "DeepSeek R1" } },
|
|
17
|
+
];
|
package/src/shared/parameters.js
CHANGED
package/src/shared/query.js
CHANGED
package/src/shared/responses.js
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { properties } from "./properties.js";
|
|
2
|
-
import { routes } from "./routes.js";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
product: "greatpages",
|
|
6
|
-
name: "conversions",
|
|
7
|
-
cache: { ttlView: 30, ttlList: 30 },
|
|
8
|
-
summary: "Armazena dados de conversões de formulários das páginas",
|
|
9
|
-
description: "Este schema define a estrutura para armazenar conversões de formulários, permitindo rastrear e analisar submissões de formulários nas páginas.",
|
|
10
|
-
properties: properties,
|
|
11
|
-
routes: routes
|
|
12
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export const properties = {
|
|
2
|
-
id: {
|
|
3
|
-
type: "number",
|
|
4
|
-
filterable: true,
|
|
5
|
-
unique: true,
|
|
6
|
-
autoIncrement: true,
|
|
7
|
-
index: true
|
|
8
|
-
},
|
|
9
|
-
id_element: {
|
|
10
|
-
type: "number",
|
|
11
|
-
filterable: true,
|
|
12
|
-
required: true
|
|
13
|
-
},
|
|
14
|
-
id_page: {
|
|
15
|
-
type: "number",
|
|
16
|
-
filterable: true,
|
|
17
|
-
required: true,
|
|
18
|
-
example: "123"
|
|
19
|
-
},
|
|
20
|
-
fields: {
|
|
21
|
-
type: "string",
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
datetime_conversion: {
|
|
25
|
-
type: "date",
|
|
26
|
-
required: true,
|
|
27
|
-
filterable: true
|
|
28
|
-
},
|
|
29
|
-
deleted: {
|
|
30
|
-
type: "boolean",
|
|
31
|
-
default: false
|
|
32
|
-
},
|
|
33
|
-
datetime_alt: {
|
|
34
|
-
type: "date",
|
|
35
|
-
filterable: true,
|
|
36
|
-
updatable: true
|
|
37
|
-
},
|
|
38
|
-
datetime_del: {
|
|
39
|
-
type: "date",
|
|
40
|
-
filterable: true
|
|
41
|
-
},
|
|
42
|
-
datetime_add: {
|
|
43
|
-
type: "date",
|
|
44
|
-
filterable: true,
|
|
45
|
-
updatable: false
|
|
46
|
-
}
|
|
47
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { properties } from "./properties.js";
|
|
2
|
-
|
|
3
|
-
export const responses = {
|
|
4
|
-
|
|
5
|
-
success: {
|
|
6
|
-
description: "Sucesso",
|
|
7
|
-
content: {
|
|
8
|
-
"application/json": {
|
|
9
|
-
type: "object",
|
|
10
|
-
properties: {
|
|
11
|
-
status: {
|
|
12
|
-
type: "number",
|
|
13
|
-
options: [ 0, 1 ],
|
|
14
|
-
value: 1
|
|
15
|
-
},
|
|
16
|
-
data: {
|
|
17
|
-
type: "array",
|
|
18
|
-
items: {
|
|
19
|
-
type: "object",
|
|
20
|
-
properties: properties
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
message: {
|
|
24
|
-
type: "string",
|
|
25
|
-
value: "Sucesso"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
required: ["status", "data"]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
successDeleted: {
|
|
33
|
-
description: "Deletado com sucesso",
|
|
34
|
-
content: {
|
|
35
|
-
"application/json": {
|
|
36
|
-
type: "object",
|
|
37
|
-
properties: {
|
|
38
|
-
status: {
|
|
39
|
-
type: "number",
|
|
40
|
-
options: [ 0, 1 ],
|
|
41
|
-
value: 1
|
|
42
|
-
},
|
|
43
|
-
data: {
|
|
44
|
-
type: "array",
|
|
45
|
-
value: [],
|
|
46
|
-
},
|
|
47
|
-
message: {
|
|
48
|
-
type: "string",
|
|
49
|
-
value: "Deletado com sucesso"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
required: ["status", "data"]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { properties } from "./properties.js";
|
|
2
|
-
import { responses } from "./responses.js";
|
|
3
|
-
import { query } from "../../shared/query.js";
|
|
4
|
-
|
|
5
|
-
export const routes = {
|
|
6
|
-
|
|
7
|
-
"/conversions/analyticsByPage/:id_page": {
|
|
8
|
-
parameters: {
|
|
9
|
-
id_page: properties.id_page
|
|
10
|
-
},
|
|
11
|
-
get: {
|
|
12
|
-
summary: "Obter análises de conversões por página",
|
|
13
|
-
description: "Retorna análises de conversões para uma página específica",
|
|
14
|
-
cache: { ttl: 30 },
|
|
15
|
-
query: query,
|
|
16
|
-
responses: {
|
|
17
|
-
"200": responses.success
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
post: null,
|
|
21
|
-
put: null,
|
|
22
|
-
delete: null
|
|
23
|
-
},
|
|
24
|
-
"/conversions/lastDaysByPage/:id_page": {
|
|
25
|
-
parameters: {
|
|
26
|
-
id_page: properties.id_page
|
|
27
|
-
},
|
|
28
|
-
get: {
|
|
29
|
-
summary: "Obter conversões dos últimos dias por página",
|
|
30
|
-
description: "Retorna as conversões dos últimos dias para uma página específica",
|
|
31
|
-
cache: { ttl: 30 },
|
|
32
|
-
responses: {
|
|
33
|
-
"200": responses.success
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
post: null,
|
|
37
|
-
put: null,
|
|
38
|
-
delete: null
|
|
39
|
-
},
|
|
40
|
-
"/conversions/exportByPage/:id_page": {
|
|
41
|
-
parameters: {
|
|
42
|
-
id_page: properties.id_page
|
|
43
|
-
},
|
|
44
|
-
get: {
|
|
45
|
-
summary: "Exportar conversões por página",
|
|
46
|
-
description: "Exporta as conversões para uma página específica",
|
|
47
|
-
cache: { ttl: 30 },
|
|
48
|
-
query: query,
|
|
49
|
-
responses: {
|
|
50
|
-
"200": responses.success
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
post: null,
|
|
54
|
-
put: null,
|
|
55
|
-
delete: null
|
|
56
|
-
},
|
|
57
|
-
"/conversions/listByPage/:id_page": {
|
|
58
|
-
parameters: {
|
|
59
|
-
id_page: properties.id_page
|
|
60
|
-
},
|
|
61
|
-
get: {
|
|
62
|
-
summary: "Listar conversões por página",
|
|
63
|
-
description: "Lista todas as conversões de uma página específica",
|
|
64
|
-
cache: { ttl: 30 },
|
|
65
|
-
query: query,
|
|
66
|
-
responses: {
|
|
67
|
-
"200": responses.success
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
post: null,
|
|
71
|
-
put: null,
|
|
72
|
-
delete: null
|
|
73
|
-
},
|
|
74
|
-
"/conversions/readByPage/:id_page": {
|
|
75
|
-
parameters: {
|
|
76
|
-
id_page: properties.id_page
|
|
77
|
-
},
|
|
78
|
-
get: null,
|
|
79
|
-
post: null,
|
|
80
|
-
put: {
|
|
81
|
-
summary: "Marcar conversões como lidas por página",
|
|
82
|
-
description: "Marca todas as conversões de uma página como lidas",
|
|
83
|
-
responses: {
|
|
84
|
-
"200": responses.success
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
delete: null
|
|
88
|
-
},
|
|
89
|
-
"/conversions/delete/:id": {
|
|
90
|
-
parameters: {
|
|
91
|
-
id: properties.id
|
|
92
|
-
},
|
|
93
|
-
get: null,
|
|
94
|
-
post: null,
|
|
95
|
-
put: null,
|
|
96
|
-
delete: {
|
|
97
|
-
summary: "Excluir uma conversão",
|
|
98
|
-
description: "Exclui uma conversão específica",
|
|
99
|
-
responses: {
|
|
100
|
-
"200": responses.successDeleted
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"/conversions/deleteByPage/:id_page": {
|
|
105
|
-
parameters: {
|
|
106
|
-
id_page: properties.id_page
|
|
107
|
-
},
|
|
108
|
-
get: null,
|
|
109
|
-
post: null,
|
|
110
|
-
put: null,
|
|
111
|
-
delete: {
|
|
112
|
-
summary: "Excluir conversões por página",
|
|
113
|
-
description: "Exclui todas as conversões de uma página específica",
|
|
114
|
-
responses: {
|
|
115
|
-
"200": responses.successDeleted
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { properties } from "./properties.js";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
product: "greatpages",
|
|
5
|
-
name: "conversions_resume",
|
|
6
|
-
cache: { ttlView: 30, ttlList: 30 },
|
|
7
|
-
summary: "Armazena resumos diários de conversões por página",
|
|
8
|
-
description: "Este schema define a estrutura para armazenar resumos diários de conversões, permitindo análises estatísticas e relatórios de desempenho.",
|
|
9
|
-
properties: properties
|
|
10
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export const properties = {
|
|
2
|
-
id: {
|
|
3
|
-
type: "number",
|
|
4
|
-
filterable: true,
|
|
5
|
-
unique: true,
|
|
6
|
-
autoIncrement: true,
|
|
7
|
-
index: true
|
|
8
|
-
},
|
|
9
|
-
id_page: {
|
|
10
|
-
type: "number",
|
|
11
|
-
filterable: true,
|
|
12
|
-
required: true,
|
|
13
|
-
example: "123"
|
|
14
|
-
},
|
|
15
|
-
conversions: {
|
|
16
|
-
type: "number",
|
|
17
|
-
default: 1
|
|
18
|
-
},
|
|
19
|
-
view: {
|
|
20
|
-
type: "number",
|
|
21
|
-
default: 0
|
|
22
|
-
},
|
|
23
|
-
datetime_resume: {
|
|
24
|
-
type: "date",
|
|
25
|
-
required: true,
|
|
26
|
-
filterable: true
|
|
27
|
-
},
|
|
28
|
-
deleted: {
|
|
29
|
-
type: "boolean",
|
|
30
|
-
default: false
|
|
31
|
-
},
|
|
32
|
-
datetime_alt: {
|
|
33
|
-
type: "date",
|
|
34
|
-
filterable: true,
|
|
35
|
-
updatable: true
|
|
36
|
-
},
|
|
37
|
-
datetime_del: {
|
|
38
|
-
type: "date",
|
|
39
|
-
filterable: true
|
|
40
|
-
},
|
|
41
|
-
datetime_add: {
|
|
42
|
-
type: "date",
|
|
43
|
-
filterable: true,
|
|
44
|
-
updatable: false
|
|
45
|
-
}
|
|
46
|
-
};
|