@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
|
@@ -25,41 +25,60 @@ export const properties = {
|
|
|
25
25
|
type: "date",
|
|
26
26
|
filterable: true
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
id_account: {
|
|
29
29
|
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
30
32
|
filterable: true,
|
|
31
|
-
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
32
39
|
interface: {
|
|
33
40
|
label: {
|
|
34
|
-
"pt-br": "
|
|
35
|
-
"en": "
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
36
43
|
},
|
|
37
|
-
component: "
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
38
46
|
}
|
|
39
47
|
},
|
|
40
|
-
|
|
48
|
+
id_lead: {
|
|
41
49
|
type: "number",
|
|
42
50
|
filterable: true,
|
|
43
51
|
index: true,
|
|
44
|
-
|
|
52
|
+
reference: {
|
|
53
|
+
module: "leads",
|
|
54
|
+
label: "full_name",
|
|
55
|
+
value: "id",
|
|
56
|
+
disabled: true
|
|
57
|
+
},
|
|
45
58
|
interface: {
|
|
46
59
|
label: {
|
|
47
|
-
"pt-br": "
|
|
48
|
-
"en": "
|
|
60
|
+
"pt-br": "Lead",
|
|
61
|
+
"en": "Lead"
|
|
49
62
|
},
|
|
50
63
|
component: "number"
|
|
51
64
|
}
|
|
52
65
|
},
|
|
53
|
-
|
|
66
|
+
id_tag: {
|
|
54
67
|
type: "number",
|
|
55
68
|
filterable: true,
|
|
56
69
|
index: true,
|
|
70
|
+
reference: {
|
|
71
|
+
module: "tags",
|
|
72
|
+
label: "name",
|
|
73
|
+
value: "id",
|
|
74
|
+
disabled: true
|
|
75
|
+
},
|
|
57
76
|
interface: {
|
|
58
77
|
label: {
|
|
59
|
-
"pt-br": "ID
|
|
60
|
-
"en": "
|
|
78
|
+
"pt-br": "ID da tag",
|
|
79
|
+
"en": "Tag ID"
|
|
61
80
|
},
|
|
62
81
|
component: "number"
|
|
63
82
|
}
|
|
64
|
-
}
|
|
83
|
+
},
|
|
65
84
|
};
|
|
@@ -0,0 +1,114 @@
|
|
|
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_conversation: {
|
|
49
|
+
type: "number",
|
|
50
|
+
filterable: true,
|
|
51
|
+
index: true,
|
|
52
|
+
reference: {
|
|
53
|
+
module: "conversations",
|
|
54
|
+
label: "title",
|
|
55
|
+
value: "id",
|
|
56
|
+
disabled: true
|
|
57
|
+
},
|
|
58
|
+
interface: {
|
|
59
|
+
label: {
|
|
60
|
+
"pt-br": "ID da Conversa",
|
|
61
|
+
"en": "Conversation ID"
|
|
62
|
+
},
|
|
63
|
+
component: "select",
|
|
64
|
+
disabled: true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
direction: {
|
|
68
|
+
type: "string",
|
|
69
|
+
default: "in",
|
|
70
|
+
options: [
|
|
71
|
+
{ value: "in", label: { "pt-br": "Entrada", "en": "Inbound" } },
|
|
72
|
+
{ value: "out", label: { "pt-br": "Saída", "en": "Outbound" } },
|
|
73
|
+
],
|
|
74
|
+
filterable: true,
|
|
75
|
+
interface: {
|
|
76
|
+
label: {
|
|
77
|
+
"pt-br": "Direção",
|
|
78
|
+
"en": "Direction"
|
|
79
|
+
},
|
|
80
|
+
component: "select"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
role: {
|
|
84
|
+
type: "string",
|
|
85
|
+
default: "user",
|
|
86
|
+
options: [
|
|
87
|
+
{ value: "user", label: { "pt-br": "Usuário", "en": "User" } },
|
|
88
|
+
{ value: "agent", label: { "pt-br": "Agente", "en": "Agent" } },
|
|
89
|
+
{ value: "system", label: { "pt-br": "Sistema", "en": "System" } },
|
|
90
|
+
{ value: "assistant", label: { "pt-br": "Assistente", "en": "Assistant" } },
|
|
91
|
+
{ value: "note", label: { "pt-br": "Nota", "en": "Note" } }
|
|
92
|
+
],
|
|
93
|
+
filterable: true,
|
|
94
|
+
interface: {
|
|
95
|
+
label: {
|
|
96
|
+
"pt-br": "Papel",
|
|
97
|
+
"en": "Role"
|
|
98
|
+
},
|
|
99
|
+
component: "select"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
content: {
|
|
103
|
+
type: "text",
|
|
104
|
+
required: true,
|
|
105
|
+
filterable: false,
|
|
106
|
+
interface: {
|
|
107
|
+
label: {
|
|
108
|
+
"pt-br": "Conteúdo",
|
|
109
|
+
"en": "Content"
|
|
110
|
+
},
|
|
111
|
+
component: "textarea",
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
@@ -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: "missions",
|
|
6
6
|
cache: { ttlView: 30, ttlList: 0 },
|
|
7
|
-
params: [ "
|
|
7
|
+
params: ["id_account", "id_agent"],
|
|
8
8
|
properties: properties,
|
|
9
9
|
routes: {}
|
|
10
10
|
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { llmModels } from "../../llm/models.js";
|
|
2
|
+
|
|
3
|
+
export const properties = {
|
|
4
|
+
id: {
|
|
5
|
+
type: "number",
|
|
6
|
+
filterable: true,
|
|
7
|
+
unique: true,
|
|
8
|
+
autoIncrement: true,
|
|
9
|
+
index: true
|
|
10
|
+
},
|
|
11
|
+
deleted: {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
filterable: true
|
|
15
|
+
},
|
|
16
|
+
datetime_add: {
|
|
17
|
+
type: "date",
|
|
18
|
+
filterable: true,
|
|
19
|
+
updatable: false
|
|
20
|
+
},
|
|
21
|
+
datetime_alt: {
|
|
22
|
+
type: "date",
|
|
23
|
+
filterable: true,
|
|
24
|
+
updatable: true
|
|
25
|
+
},
|
|
26
|
+
datetime_del: {
|
|
27
|
+
type: "date",
|
|
28
|
+
filterable: true
|
|
29
|
+
},
|
|
30
|
+
id_account: {
|
|
31
|
+
type: "number",
|
|
32
|
+
required: true,
|
|
33
|
+
updatable: false,
|
|
34
|
+
filterable: true,
|
|
35
|
+
reference: {
|
|
36
|
+
module: "accounts",
|
|
37
|
+
label: "name",
|
|
38
|
+
value: "id",
|
|
39
|
+
disabled: true
|
|
40
|
+
},
|
|
41
|
+
interface: {
|
|
42
|
+
label: {
|
|
43
|
+
"pt-br": "Conta",
|
|
44
|
+
"en": "Account"
|
|
45
|
+
},
|
|
46
|
+
component: "select",
|
|
47
|
+
disabled: true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
id_agent: {
|
|
51
|
+
type: "number",
|
|
52
|
+
filterable: true,
|
|
53
|
+
index: true,
|
|
54
|
+
reference: {
|
|
55
|
+
module: "agents",
|
|
56
|
+
label: "title",
|
|
57
|
+
value: "id",
|
|
58
|
+
disabled: true
|
|
59
|
+
},
|
|
60
|
+
interface: {
|
|
61
|
+
label: {
|
|
62
|
+
"pt-br": "ID do Agente",
|
|
63
|
+
"en": "Agent ID"
|
|
64
|
+
},
|
|
65
|
+
component: "number"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
title: {
|
|
69
|
+
type: "string",
|
|
70
|
+
required: true,
|
|
71
|
+
filterable: true,
|
|
72
|
+
searchable: true,
|
|
73
|
+
validation: {
|
|
74
|
+
maxLength: 255
|
|
75
|
+
},
|
|
76
|
+
interface: {
|
|
77
|
+
label: {
|
|
78
|
+
"pt-br": "Título da missão",
|
|
79
|
+
"en": "Mission title"
|
|
80
|
+
},
|
|
81
|
+
component: "string",
|
|
82
|
+
placeholder: {
|
|
83
|
+
"pt-br": "Dê um título curto e descritivo para a missão",
|
|
84
|
+
"en": "Give a short and descriptive title for the mission"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
prompt: {
|
|
89
|
+
type: "string",
|
|
90
|
+
interface: {
|
|
91
|
+
label: {
|
|
92
|
+
"pt-br": "Instruções específicas da missão",
|
|
93
|
+
"en": "Specific instructions of the mission"
|
|
94
|
+
},
|
|
95
|
+
component: "textarea",
|
|
96
|
+
placeholder: {
|
|
97
|
+
"pt-br": "Forneça instruções adicionais para o agente seguir nesta missão",
|
|
98
|
+
"en": "Provide additional instructions for the agent to follow in this mission"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
llm_model: {
|
|
103
|
+
type: "string",
|
|
104
|
+
filterable: true,
|
|
105
|
+
default: "gpt-3.5",
|
|
106
|
+
options: llmModels,
|
|
107
|
+
interface: {
|
|
108
|
+
component: "select",
|
|
109
|
+
label: {
|
|
110
|
+
"pt-br": "Modelo LLM",
|
|
111
|
+
"en": "LLM Model"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { llmModels } from "../../llm/models.js";
|
|
2
|
+
|
|
3
|
+
export const properties = {
|
|
4
|
+
id: {
|
|
5
|
+
type: "number",
|
|
6
|
+
filterable: true,
|
|
7
|
+
unique: true,
|
|
8
|
+
autoIncrement: true,
|
|
9
|
+
index: true
|
|
10
|
+
},
|
|
11
|
+
deleted: {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
filterable: true
|
|
15
|
+
},
|
|
16
|
+
datetime_add: {
|
|
17
|
+
type: "date",
|
|
18
|
+
filterable: true,
|
|
19
|
+
updatable: false
|
|
20
|
+
},
|
|
21
|
+
datetime_alt: {
|
|
22
|
+
type: "date",
|
|
23
|
+
filterable: true,
|
|
24
|
+
updatable: true
|
|
25
|
+
},
|
|
26
|
+
datetime_del: {
|
|
27
|
+
type: "date",
|
|
28
|
+
filterable: true
|
|
29
|
+
},
|
|
30
|
+
id_account: {
|
|
31
|
+
type: "number",
|
|
32
|
+
required: true,
|
|
33
|
+
updatable: false,
|
|
34
|
+
filterable: true,
|
|
35
|
+
reference: {
|
|
36
|
+
module: "accounts",
|
|
37
|
+
label: "name",
|
|
38
|
+
value: "id",
|
|
39
|
+
disabled: true
|
|
40
|
+
},
|
|
41
|
+
interface: {
|
|
42
|
+
label: {
|
|
43
|
+
"pt-br": "Conta",
|
|
44
|
+
"en": "Account"
|
|
45
|
+
},
|
|
46
|
+
component: "select",
|
|
47
|
+
disabled: true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
id_agent: {
|
|
51
|
+
type: "number",
|
|
52
|
+
filterable: true,
|
|
53
|
+
index: true,
|
|
54
|
+
reference: {
|
|
55
|
+
module: "agents",
|
|
56
|
+
label: "title",
|
|
57
|
+
value: "id",
|
|
58
|
+
disabled: true
|
|
59
|
+
},
|
|
60
|
+
interface: {
|
|
61
|
+
label: {
|
|
62
|
+
"pt-br": "ID do agente",
|
|
63
|
+
"en": "Agent ID"
|
|
64
|
+
},
|
|
65
|
+
component: "number"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
id_mission: {
|
|
69
|
+
type: "number",
|
|
70
|
+
filterable: true,
|
|
71
|
+
index: true,
|
|
72
|
+
reference: {
|
|
73
|
+
module: "missions",
|
|
74
|
+
label: "title",
|
|
75
|
+
value: "id",
|
|
76
|
+
disabled: true
|
|
77
|
+
},
|
|
78
|
+
interface: {
|
|
79
|
+
label: {
|
|
80
|
+
"pt-br": "ID da missão",
|
|
81
|
+
"en": "Mission ID"
|
|
82
|
+
},
|
|
83
|
+
component: "number"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
order: {
|
|
87
|
+
type: "number",
|
|
88
|
+
filterable: true,
|
|
89
|
+
required: true,
|
|
90
|
+
default: 0,
|
|
91
|
+
interface: {
|
|
92
|
+
label: {
|
|
93
|
+
"pt-br": "Ordem",
|
|
94
|
+
"en": "Order"
|
|
95
|
+
},
|
|
96
|
+
component: "number",
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
title: {
|
|
100
|
+
type: "string",
|
|
101
|
+
required: true,
|
|
102
|
+
filterable: true,
|
|
103
|
+
searchable: true,
|
|
104
|
+
validation: {
|
|
105
|
+
maxLength: 255
|
|
106
|
+
},
|
|
107
|
+
interface: {
|
|
108
|
+
label: {
|
|
109
|
+
"pt-br": "Título do objetivo",
|
|
110
|
+
"en": "Objective title"
|
|
111
|
+
},
|
|
112
|
+
component: "string",
|
|
113
|
+
placeholder: {
|
|
114
|
+
"pt-br": "Dê um título curto e descritivo para o objetivo",
|
|
115
|
+
"en": "Give a short and descriptive title for the objective"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
prompt: {
|
|
120
|
+
type: "string",
|
|
121
|
+
interface: {
|
|
122
|
+
label: {
|
|
123
|
+
"pt-br": "Instruções específicas do objetivo",
|
|
124
|
+
"en": "Specific instructions of the objective"
|
|
125
|
+
},
|
|
126
|
+
component: "textarea",
|
|
127
|
+
placeholder: {
|
|
128
|
+
"pt-br": "Forneça instruções adicionais para o agente seguir neste objetivo",
|
|
129
|
+
"en": "Provide additional instructions for the agent to follow in this objective"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
llm_model: {
|
|
134
|
+
type: "string",
|
|
135
|
+
filterable: true,
|
|
136
|
+
default: "gpt-3.5",
|
|
137
|
+
options: llmModels,
|
|
138
|
+
interface: {
|
|
139
|
+
component: "select",
|
|
140
|
+
label: {
|
|
141
|
+
"pt-br": "Modelo LLM",
|
|
142
|
+
"en": "LLM Model"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { properties } from "./properties.js";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
product: "greatagents",
|
|
5
|
+
name: "objectives_tools",
|
|
6
|
+
cache: { ttlView: 30, ttlList: 0 },
|
|
7
|
+
params: ["id_account", "id_agent", "id_mission", "id_objective", "id_tool"],
|
|
8
|
+
properties: properties,
|
|
9
|
+
routes: {}
|
|
10
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
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_agent: {
|
|
49
|
+
type: "number",
|
|
50
|
+
filterable: true,
|
|
51
|
+
index: true,
|
|
52
|
+
reference: {
|
|
53
|
+
module: "agents",
|
|
54
|
+
label: "title",
|
|
55
|
+
value: "id",
|
|
56
|
+
disabled: true
|
|
57
|
+
},
|
|
58
|
+
interface: {
|
|
59
|
+
label: {
|
|
60
|
+
"pt-br": "ID do agente",
|
|
61
|
+
"en": "Agent ID"
|
|
62
|
+
},
|
|
63
|
+
component: "number"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
id_mission: {
|
|
67
|
+
type: "number",
|
|
68
|
+
filterable: true,
|
|
69
|
+
index: true,
|
|
70
|
+
reference: {
|
|
71
|
+
module: "missions",
|
|
72
|
+
label: "title",
|
|
73
|
+
value: "id",
|
|
74
|
+
disabled: true
|
|
75
|
+
},
|
|
76
|
+
interface: {
|
|
77
|
+
label: {
|
|
78
|
+
"pt-br": "ID da missão",
|
|
79
|
+
"en": "Mission ID"
|
|
80
|
+
},
|
|
81
|
+
component: "number"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
id_objective: {
|
|
85
|
+
type: "number",
|
|
86
|
+
filterable: true,
|
|
87
|
+
index: true,
|
|
88
|
+
reference: {
|
|
89
|
+
module: "objectives",
|
|
90
|
+
label: "title",
|
|
91
|
+
value: "id",
|
|
92
|
+
disabled: true
|
|
93
|
+
},
|
|
94
|
+
interface: {
|
|
95
|
+
label: {
|
|
96
|
+
"pt-br": "ID do objetivo",
|
|
97
|
+
"en": "Objective ID"
|
|
98
|
+
},
|
|
99
|
+
component: "number"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
id_tool: {
|
|
103
|
+
type: "number",
|
|
104
|
+
filterable: true,
|
|
105
|
+
index: true,
|
|
106
|
+
reference: {
|
|
107
|
+
module: "tools",
|
|
108
|
+
label: "title",
|
|
109
|
+
value: "id",
|
|
110
|
+
disabled: true
|
|
111
|
+
},
|
|
112
|
+
interface: {
|
|
113
|
+
label: {
|
|
114
|
+
"pt-br": "ID da ferramenta",
|
|
115
|
+
"en": "Tool ID"
|
|
116
|
+
},
|
|
117
|
+
component: "number"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
instructions: {
|
|
121
|
+
type: "string",
|
|
122
|
+
interface: {
|
|
123
|
+
label: {
|
|
124
|
+
"pt-br": "Instruções de uso",
|
|
125
|
+
"en": "Usage instructions"
|
|
126
|
+
},
|
|
127
|
+
component: "textarea",
|
|
128
|
+
placeholder: {
|
|
129
|
+
"pt-br": "Descreva como o agente deve usar essa ferramenta para completar o objetivo",
|
|
130
|
+
"en": "Describe how the agent should use this tool to complete the objective"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
wait: {
|
|
135
|
+
type: "boolean",
|
|
136
|
+
default: false,
|
|
137
|
+
interface: {
|
|
138
|
+
component: "checkbox",
|
|
139
|
+
label: {
|
|
140
|
+
"pt-br": "Aguardar resposta?",
|
|
141
|
+
"en": "Wait for response?"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
};
|