@greatapps/greatagents 0.1.10 → 0.1.11
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/src/modules/objectives/index.js +1 -1
- package/src/modules/objectives/properties.js +8 -7
- package/src/product.js +1 -25
- package/docs/ERD_GAGents_Database.mmd +0 -331
- package/scripts/MIGRATION_COMPLETE_DOCUMENTATION.md +0 -672
- package/scripts/README.md +0 -165
- package/scripts/constraints.sql +0 -585
- package/scripts/indexes.sql +0 -661
- package/scripts/migrate_v1.sql +0 -1225
- package/scripts/tables/001_accounts.sql +0 -51
- package/scripts/tables/002_users.sql +0 -69
- package/scripts/tables/003_people.sql +0 -70
- package/scripts/tables/004_tags.sql +0 -62
- package/scripts/tables/005_credentials.sql +0 -79
- package/scripts/tables/006_agents.sql +0 -70
- package/scripts/tables/007_tools.sql +0 -68
- package/scripts/tables/008_channels.sql +0 -75
- package/scripts/tables/009_leads.sql +0 -85
- package/scripts/tables/010_missions.sql +0 -62
- package/scripts/tables/011_objectives.sql +0 -68
- package/scripts/tables/012_conversations.sql +0 -80
- package/scripts/tables/013_objectives_tools.sql +0 -66
- package/scripts/tables/014_messages.sql +0 -78
- package/scripts/tables/015_companies.sql +0 -77
- package/scripts/tables/016_conversations_tags.sql +0 -64
- package/scripts/tables/017_leads_tags.sql +0 -64
- package/scripts/triggers.sql +0 -497
- package/src/modules/channels/index.js +0 -10
- package/src/modules/channels/properties.js +0 -150
- package/src/modules/companies/index.js +0 -10
- package/src/modules/companies/properties.js +0 -168
- package/src/modules/conversations/index.js +0 -10
- package/src/modules/conversations/properties.js +0 -163
- package/src/modules/conversations_tags/index.js +0 -10
- package/src/modules/conversations_tags/properties.js +0 -84
- package/src/modules/credentials/index.js +0 -10
- package/src/modules/credentials/properties.js +0 -271
- package/src/modules/leads/index.js +0 -10
- package/src/modules/leads/properties.js +0 -193
- package/src/modules/leads_tags/index.js +0 -10
- package/src/modules/leads_tags/properties.js +0 -84
- package/src/modules/messages/index.js +0 -10
- package/src/modules/messages/properties.js +0 -152
- package/src/modules/missions/index.js +0 -10
- package/src/modules/missions/properties.js +0 -101
- package/src/modules/objectives_tools/index.js +0 -10
- package/src/modules/objectives_tools/properties.js +0 -109
- package/src/modules/people/index.js +0 -10
- package/src/modules/people/properties.js +0 -161
- package/src/modules/tags/index.js +0 -10
- package/src/modules/tags/properties.js +0 -80
- package/src/modules/tools/index.js +0 -10
- package/src/modules/tools/properties.js +0 -121
|
@@ -1,161 +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
|
-
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
|
-
full_name: {
|
|
49
|
-
type: "string",
|
|
50
|
-
searchable: true,
|
|
51
|
-
validation: {
|
|
52
|
-
maxLength: 255
|
|
53
|
-
},
|
|
54
|
-
interface: {
|
|
55
|
-
label: {
|
|
56
|
-
"pt-br": "Nome completo",
|
|
57
|
-
"en": "Full name"
|
|
58
|
-
},
|
|
59
|
-
component: "string",
|
|
60
|
-
placeholder: {
|
|
61
|
-
"pt-br": "Nome completo do lead",
|
|
62
|
-
"en": "Full name of the lead"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
first_name: {
|
|
67
|
-
type: "string",
|
|
68
|
-
searchable: true,
|
|
69
|
-
validation: {
|
|
70
|
-
maxLength: 255
|
|
71
|
-
},
|
|
72
|
-
interface: {
|
|
73
|
-
label: {
|
|
74
|
-
"pt-br": "Primeiro nome",
|
|
75
|
-
"en": "First name"
|
|
76
|
-
},
|
|
77
|
-
component: "string",
|
|
78
|
-
placeholder: {
|
|
79
|
-
"pt-br": "Primeiro nome do lead",
|
|
80
|
-
"en": "First name of the lead"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
last_name: {
|
|
85
|
-
type: "string",
|
|
86
|
-
searchable: true,
|
|
87
|
-
validation: {
|
|
88
|
-
maxLength: 255
|
|
89
|
-
},
|
|
90
|
-
interface: {
|
|
91
|
-
label: {
|
|
92
|
-
"pt-br": "Último nome",
|
|
93
|
-
"en": "Last name"
|
|
94
|
-
},
|
|
95
|
-
component: "string",
|
|
96
|
-
placeholder: {
|
|
97
|
-
"pt-br": "Último nome do lead",
|
|
98
|
-
"en": "Last name of the lead"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
photo: {
|
|
103
|
-
type: "image",
|
|
104
|
-
file: {
|
|
105
|
-
types: [
|
|
106
|
-
"png",
|
|
107
|
-
"jpg",
|
|
108
|
-
"jpeg",
|
|
109
|
-
"gif",
|
|
110
|
-
"svg",
|
|
111
|
-
"webp"
|
|
112
|
-
],
|
|
113
|
-
storage: "gpages",
|
|
114
|
-
width: 200,
|
|
115
|
-
height: 200
|
|
116
|
-
},
|
|
117
|
-
interface: {
|
|
118
|
-
label: {
|
|
119
|
-
"pt-br": "Foto",
|
|
120
|
-
"en": "Photo"
|
|
121
|
-
},
|
|
122
|
-
component: "image",
|
|
123
|
-
list: true,
|
|
124
|
-
view: true,
|
|
125
|
-
edit: true
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
document: {
|
|
129
|
-
type: "string",
|
|
130
|
-
searchable: true,
|
|
131
|
-
validation: {
|
|
132
|
-
maxLength: 50
|
|
133
|
-
},
|
|
134
|
-
interface: {
|
|
135
|
-
label: {
|
|
136
|
-
"pt-br": "Documento",
|
|
137
|
-
"en": "Document"
|
|
138
|
-
},
|
|
139
|
-
component: "string",
|
|
140
|
-
placeholder: {
|
|
141
|
-
"pt-br": "CPF ou CNPJ do lead",
|
|
142
|
-
"en": "Lead's document"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
birth_date: {
|
|
147
|
-
type: "date",
|
|
148
|
-
filterable: true,
|
|
149
|
-
interface: {
|
|
150
|
-
label: {
|
|
151
|
-
"pt-br": "Data de nascimento",
|
|
152
|
-
"en": "Birth date"
|
|
153
|
-
},
|
|
154
|
-
component: "date",
|
|
155
|
-
placeholder: {
|
|
156
|
-
"pt-br": "Data de nascimento do lead",
|
|
157
|
-
"en": "Lead's birth date"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
};
|
|
@@ -1,80 +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
|
-
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
|
-
name: {
|
|
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": "Nome da tag",
|
|
59
|
-
"en": "Tag name"
|
|
60
|
-
},
|
|
61
|
-
component: "string",
|
|
62
|
-
placeholder: {
|
|
63
|
-
"pt-br": "Digite o nome da tag",
|
|
64
|
-
"en": "Enter the tag name"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
color: {
|
|
69
|
-
type: "string",
|
|
70
|
-
default: "#000000",
|
|
71
|
-
filterable: true,
|
|
72
|
-
interface: {
|
|
73
|
-
label: {
|
|
74
|
-
"pt-br": "Cor da tag",
|
|
75
|
-
"en": "Tag color"
|
|
76
|
-
},
|
|
77
|
-
component: "color"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
};
|
|
@@ -1,121 +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
|
-
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
|
-
required: false,
|
|
113
|
-
interface: {
|
|
114
|
-
label: {
|
|
115
|
-
"pt-br": "ID da credencial",
|
|
116
|
-
"en": "Credential ID"
|
|
117
|
-
},
|
|
118
|
-
component: "number"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|