@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
|
@@ -0,0 +1,270 @@
|
|
|
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",
|
|
59
|
+
"en": "Title"
|
|
60
|
+
},
|
|
61
|
+
component: "string",
|
|
62
|
+
placeholder: {
|
|
63
|
+
"pt-br": "Dê um título curto e descritivo",
|
|
64
|
+
"en": "Give a short and descriptive title"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
integration: {
|
|
69
|
+
type: "string",
|
|
70
|
+
required: true,
|
|
71
|
+
filterable: true,
|
|
72
|
+
default: "web-chat",
|
|
73
|
+
options: [
|
|
74
|
+
{ value: "web-chat", label: { "pt-br": "Web Chat", "en": "Web Chat" } },
|
|
75
|
+
{ value: "whatsapp-oficial", label: { "pt-br": "WhatsApp (API Oficial)", "en": "WhatsApp (API Oficial)" } },
|
|
76
|
+
{ value: "z-api", label: { "pt-br": "WhatsApp (Z-API)", "en": "WhatsApp (Z-API)" } },
|
|
77
|
+
{ value: "evolution-api", label: { "pt-br": "WhatsApp (Evolution API)", "en": "WhatsApp (Evolution API)" } },
|
|
78
|
+
{ value: "telegram", label: { "pt-br": "Telegram", "en": "Telegram" } },
|
|
79
|
+
{ value: "facebook", label: { "pt-br": "Facebook", "en": "Facebook" } },
|
|
80
|
+
{ value: "instagram", label: { "pt-br": "Instagram", "en": "Instagram" } }
|
|
81
|
+
],
|
|
82
|
+
interface: {
|
|
83
|
+
component: "select",
|
|
84
|
+
label: {
|
|
85
|
+
"pt-br": "Provedor",
|
|
86
|
+
"en": "Provider"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
authType: {
|
|
91
|
+
type: "string",
|
|
92
|
+
required: true,
|
|
93
|
+
filterable: true,
|
|
94
|
+
default: "none",
|
|
95
|
+
options: [
|
|
96
|
+
{ value: "none", label: { "pt-br": "Nenhum", "en": "None" } },
|
|
97
|
+
{ value: "basic", label: { "pt-br": "Básico", "en": "Basic" } },
|
|
98
|
+
{ value: "oauth2", label: { "pt-br": "OAuth2", "en": "OAuth2" } },
|
|
99
|
+
{ value: "apikey", label: { "pt-br": "API Key", "en": "API Key" } }
|
|
100
|
+
],
|
|
101
|
+
interface: {
|
|
102
|
+
component: "select",
|
|
103
|
+
label: {
|
|
104
|
+
"pt-br": "Tipo de autenticação",
|
|
105
|
+
"en": "Authentication type"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
userName:{
|
|
110
|
+
type: "string",
|
|
111
|
+
interface: {
|
|
112
|
+
label: {
|
|
113
|
+
"pt-br": "Usuário de autenticação",
|
|
114
|
+
"en": "Authentication user"
|
|
115
|
+
},
|
|
116
|
+
component: "string",
|
|
117
|
+
placeholder: {
|
|
118
|
+
"pt-br": "Usuário para autenticação",
|
|
119
|
+
"en": "User for authentication"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
password: {
|
|
124
|
+
type: "string",
|
|
125
|
+
interface: {
|
|
126
|
+
label: {
|
|
127
|
+
"pt-br": "Senha de autenticação",
|
|
128
|
+
"en": "Authentication password"
|
|
129
|
+
},
|
|
130
|
+
component: "password",
|
|
131
|
+
placeholder: {
|
|
132
|
+
"pt-br": "Senha para autenticação",
|
|
133
|
+
"en": "Password for authentication"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
apiKey: {
|
|
138
|
+
type: "string",
|
|
139
|
+
interface: {
|
|
140
|
+
label: {
|
|
141
|
+
"pt-br": "Chave de API",
|
|
142
|
+
"en": "API Key"
|
|
143
|
+
},
|
|
144
|
+
component: "string",
|
|
145
|
+
placeholder: {
|
|
146
|
+
"pt-br": "Chave de API para autenticação",
|
|
147
|
+
"en": "API Key for authentication"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
token: {
|
|
152
|
+
type: "string",
|
|
153
|
+
interface: {
|
|
154
|
+
label: {
|
|
155
|
+
"pt-br": "Token de acesso",
|
|
156
|
+
"en": "Access Token"
|
|
157
|
+
},
|
|
158
|
+
component: "string",
|
|
159
|
+
placeholder: {
|
|
160
|
+
"pt-br": "Token de acesso para autenticação",
|
|
161
|
+
"en": "Access Token for authentication"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
paramName: {
|
|
166
|
+
type: "string",
|
|
167
|
+
interface: {
|
|
168
|
+
label: {
|
|
169
|
+
"pt-br": "Nome do parâmetro",
|
|
170
|
+
"en": "Parameter name"
|
|
171
|
+
},
|
|
172
|
+
component: "string",
|
|
173
|
+
placeholder: {
|
|
174
|
+
"pt-br": "Nome do parâmetro para envio do token",
|
|
175
|
+
"en": "Parameter name for sending the token"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
refreshToken: {
|
|
180
|
+
type: "string",
|
|
181
|
+
interface: {
|
|
182
|
+
label: {
|
|
183
|
+
"pt-br": "Token de atualização",
|
|
184
|
+
"en": "Refresh Token",
|
|
185
|
+
},
|
|
186
|
+
component: "string",
|
|
187
|
+
placeholder: {
|
|
188
|
+
"pt-br": "Token de atualização para autenticação",
|
|
189
|
+
"en": "Refresh Token for authentication"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
clientSecret: {
|
|
194
|
+
type: "string",
|
|
195
|
+
interface: {
|
|
196
|
+
label: {
|
|
197
|
+
"pt-br": "Segredo do cliente",
|
|
198
|
+
"en": "Client Secret"
|
|
199
|
+
},
|
|
200
|
+
component: "string",
|
|
201
|
+
placeholder: {
|
|
202
|
+
"pt-br": "Segredo do cliente para autenticação",
|
|
203
|
+
"en": "Client Secret for authentication"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
clientId: {
|
|
208
|
+
type: "string",
|
|
209
|
+
interface: {
|
|
210
|
+
label: {
|
|
211
|
+
"pt-br": "ID do cliente",
|
|
212
|
+
"en": "Client ID"
|
|
213
|
+
},
|
|
214
|
+
component: "string",
|
|
215
|
+
placeholder: {
|
|
216
|
+
"pt-br": "ID do cliente para autenticação",
|
|
217
|
+
"en": "Client ID for authentication"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
sendIn: {
|
|
222
|
+
type: "string",
|
|
223
|
+
default: "none",
|
|
224
|
+
options: [
|
|
225
|
+
{ value: "none", label: { "pt-br": "Nenhum", "en": "None" } },
|
|
226
|
+
{ value: "bearer", label: { "pt-br": "Bearer", "en": "Bearer" } },
|
|
227
|
+
{ value: "header", label: { "pt-br": "Header", "en": "Header" } },
|
|
228
|
+
{ value: "query", label: { "pt-br": "Query", "en": "Query" } },
|
|
229
|
+
{ value: "body", label: { "pt-br": "Body", "en": "Body" } }
|
|
230
|
+
],
|
|
231
|
+
interface: {
|
|
232
|
+
component: "select",
|
|
233
|
+
label: {
|
|
234
|
+
"pt-br": "Tipo de autenticação para envio",
|
|
235
|
+
"en": "Authentication type for sending"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
scheme: {
|
|
240
|
+
type: "string",
|
|
241
|
+
default: "none",
|
|
242
|
+
options: [
|
|
243
|
+
{ value: "none", label: { "pt-br": "Nenhum", "en": "None" } },
|
|
244
|
+
{ value: "raw", label: { "pt-br": "Raw", "en": "Raw" } },
|
|
245
|
+
{ value: "bearer", label: { "pt-br": "Bearer", "en": "Bearer" } },
|
|
246
|
+
{ value: "prefix", label: { "pt-br": "Prefix", "en": "Prefix" } }
|
|
247
|
+
],
|
|
248
|
+
interface: {
|
|
249
|
+
component: "select",
|
|
250
|
+
label: {
|
|
251
|
+
"pt-br": "Tipo de autenticação para envio",
|
|
252
|
+
"en": "Authentication type for sending"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
prefix: {
|
|
257
|
+
type: "string",
|
|
258
|
+
interface: {
|
|
259
|
+
label: {
|
|
260
|
+
"pt-br": "Prefixo",
|
|
261
|
+
"en": "Prefix"
|
|
262
|
+
},
|
|
263
|
+
component: "string",
|
|
264
|
+
placeholder: {
|
|
265
|
+
"pt-br": "Prefixo para autenticação",
|
|
266
|
+
"en": "Prefix for authentication"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
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
|
+
email: {
|
|
129
|
+
type: "string",
|
|
130
|
+
searchable: true,
|
|
131
|
+
validation: {
|
|
132
|
+
maxLength: 255,
|
|
133
|
+
pattern: "email"
|
|
134
|
+
},
|
|
135
|
+
interface: {
|
|
136
|
+
label: {
|
|
137
|
+
"pt-br": "E-mail",
|
|
138
|
+
"en": "E-mail"
|
|
139
|
+
},
|
|
140
|
+
component: "string",
|
|
141
|
+
placeholder: {
|
|
142
|
+
"pt-br": "E-mail do lead",
|
|
143
|
+
"en": "Lead's e-mail"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
phone: {
|
|
148
|
+
type: "string",
|
|
149
|
+
searchable: true,
|
|
150
|
+
validation: {
|
|
151
|
+
maxLength: 20,
|
|
152
|
+
pattern: "phone"
|
|
153
|
+
},
|
|
154
|
+
interface: {
|
|
155
|
+
label: {
|
|
156
|
+
"pt-br": "Telefone",
|
|
157
|
+
"en": "Phone"
|
|
158
|
+
},
|
|
159
|
+
component: "string",
|
|
160
|
+
placeholder: {
|
|
161
|
+
"pt-br": "Telefone do lead",
|
|
162
|
+
"en": "Lead's phone"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
owner_user_id: {
|
|
167
|
+
type: "number",
|
|
168
|
+
filterable: true,
|
|
169
|
+
index: true,
|
|
170
|
+
reference: {
|
|
171
|
+
module: "users",
|
|
172
|
+
label: "name",
|
|
173
|
+
value: "id",
|
|
174
|
+
disabled: true
|
|
175
|
+
},
|
|
176
|
+
interface: {
|
|
177
|
+
label: {
|
|
178
|
+
"pt-br": "ID do usuário proprietário",
|
|
179
|
+
"en": "Owner user ID"
|
|
180
|
+
},
|
|
181
|
+
component: "number"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
current_agent_id: {
|
|
185
|
+
type: "number",
|
|
186
|
+
filterable: true,
|
|
187
|
+
index: true,
|
|
188
|
+
reference: {
|
|
189
|
+
module: "agents",
|
|
190
|
+
label: "title",
|
|
191
|
+
value: "id",
|
|
192
|
+
disabled: true
|
|
193
|
+
},
|
|
194
|
+
interface: {
|
|
195
|
+
label: {
|
|
196
|
+
"pt-br": "ID do agente atual",
|
|
197
|
+
"en": "Current agent ID"
|
|
198
|
+
},
|
|
199
|
+
component: "number"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
current_mission_id: {
|
|
203
|
+
type: "number",
|
|
204
|
+
filterable: true,
|
|
205
|
+
index: true,
|
|
206
|
+
reference: {
|
|
207
|
+
module: "missions",
|
|
208
|
+
label: "title",
|
|
209
|
+
value: "id",
|
|
210
|
+
disabled: true
|
|
211
|
+
},
|
|
212
|
+
interface: {
|
|
213
|
+
label: {
|
|
214
|
+
"pt-br": "ID da missão atual",
|
|
215
|
+
"en": "Current mission ID"
|
|
216
|
+
},
|
|
217
|
+
component: "number"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
current_objective_id: {
|
|
221
|
+
type: "number",
|
|
222
|
+
filterable: true,
|
|
223
|
+
index: true,
|
|
224
|
+
reference: {
|
|
225
|
+
module: "objectives",
|
|
226
|
+
label: "title",
|
|
227
|
+
value: "id",
|
|
228
|
+
disabled: true
|
|
229
|
+
},
|
|
230
|
+
interface: {
|
|
231
|
+
label: {
|
|
232
|
+
"pt-br": "ID do objetivo atual",
|
|
233
|
+
"en": "Current objective ID"
|
|
234
|
+
},
|
|
235
|
+
component: "number"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
notes: {
|
|
239
|
+
type: "string",
|
|
240
|
+
searchable: true,
|
|
241
|
+
interface: {
|
|
242
|
+
label: {
|
|
243
|
+
"pt-br": "Notas",
|
|
244
|
+
"en": "Notes"
|
|
245
|
+
},
|
|
246
|
+
component: "textarea",
|
|
247
|
+
placeholder: {
|
|
248
|
+
"pt-br": "Notas sobre o lead",
|
|
249
|
+
"en": "Notes about the lead"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
id_lead: {
|
|
49
|
+
type: "number",
|
|
50
|
+
filterable: true,
|
|
51
|
+
index: true,
|
|
52
|
+
reference: {
|
|
53
|
+
module: "leads",
|
|
54
|
+
label: "full_name",
|
|
55
|
+
value: "id",
|
|
56
|
+
disabled: true
|
|
57
|
+
},
|
|
58
|
+
interface: {
|
|
59
|
+
label: {
|
|
60
|
+
"pt-br": "Lead",
|
|
61
|
+
"en": "Lead"
|
|
62
|
+
},
|
|
63
|
+
component: "number"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
channel: {
|
|
67
|
+
type: "string",
|
|
68
|
+
required: true,
|
|
69
|
+
filterable: true,
|
|
70
|
+
default: 0,
|
|
71
|
+
options: [
|
|
72
|
+
{ value: "web-chat", label: { "pt-br": "Web Chat", "en": "Web Chat" } },
|
|
73
|
+
{ value: "whatsap", label: { "pt-br": "WhatsApp", "en": "WhatsApp" } },
|
|
74
|
+
{ value: "telegram", label: { "pt-br": "Telegram", "en": "Telegram" } },
|
|
75
|
+
{ value: "facebook", label: { "pt-br": "Facebook", "en": "Facebook" } },
|
|
76
|
+
{ value: "instagram", label: { "pt-br": "Instagram", "en": "Instagram" } }
|
|
77
|
+
],
|
|
78
|
+
interface: {
|
|
79
|
+
component: "select",
|
|
80
|
+
label: {
|
|
81
|
+
"pt-br": "Provedor",
|
|
82
|
+
"en": "Provider"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
handle: {
|
|
87
|
+
type: "string",
|
|
88
|
+
filterable: true,
|
|
89
|
+
validation: {
|
|
90
|
+
maxLength: 255
|
|
91
|
+
},
|
|
92
|
+
interface: {
|
|
93
|
+
label: {
|
|
94
|
+
"pt-br": "Identificador do canal",
|
|
95
|
+
"en": "Channel identifier"
|
|
96
|
+
},
|
|
97
|
+
component: "string",
|
|
98
|
+
placeholder: {
|
|
99
|
+
"pt-br": "Identificador único do canal (Ex: número do WhatsApp, ID do Telegram, @ do Instagram, etc.)",
|
|
100
|
+
"en": "Unique identifier of the channel (e.g., WhatsApp number, Telegram ID, Instagram @, etc.)"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { properties } from "./properties.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
product: "
|
|
5
|
-
name: "
|
|
4
|
+
product: "greatagents",
|
|
5
|
+
name: "leads_tags",
|
|
6
6
|
cache: { ttlView: 30, ttlList: 0 },
|
|
7
|
-
params: ["id_account", "
|
|
7
|
+
params: ["id_account", "id_lead", "id_tag"],
|
|
8
8
|
properties: properties,
|
|
9
9
|
routes: {}
|
|
10
10
|
};
|