@greatapps/greatagents 0.1.10 → 0.1.12
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/{channels → contacts}/index.js +1 -1
- package/src/modules/{tags → contacts}/properties.js +49 -17
- package/src/modules/conversations/index.js +1 -1
- package/src/modules/conversations/properties.js +35 -80
- package/src/modules/objectives/index.js +1 -1
- package/src/modules/objectives/properties.js +8 -7
- package/src/product.js +4 -24
- 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/properties.js +0 -150
- package/src/modules/companies/index.js +0 -10
- package/src/modules/companies/properties.js +0 -168
- 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/tools/index.js +0 -10
- package/src/modules/tools/properties.js +0 -121
package/package.json
CHANGED
|
@@ -49,32 +49,64 @@ export const properties = {
|
|
|
49
49
|
type: "string",
|
|
50
50
|
required: true,
|
|
51
51
|
filterable: true,
|
|
52
|
-
searchable: true,
|
|
53
|
-
validation: {
|
|
54
|
-
maxLength: 255
|
|
55
|
-
},
|
|
56
52
|
interface: {
|
|
57
53
|
label: {
|
|
58
|
-
"pt-br": "Nome
|
|
59
|
-
"en": "
|
|
54
|
+
"pt-br": "Nome",
|
|
55
|
+
"en": "Name"
|
|
56
|
+
},
|
|
57
|
+
component: "input"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
email: {
|
|
61
|
+
type: "string",
|
|
62
|
+
required: false,
|
|
63
|
+
filterable: true,
|
|
64
|
+
interface: {
|
|
65
|
+
label: {
|
|
66
|
+
"pt-br": "Email",
|
|
67
|
+
"en": "Email"
|
|
60
68
|
},
|
|
61
|
-
component: "
|
|
62
|
-
|
|
63
|
-
"pt-br": "Digite o nome da tag",
|
|
64
|
-
"en": "Enter the tag name"
|
|
65
|
-
}
|
|
69
|
+
component: "input",
|
|
70
|
+
format: "email"
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
|
-
|
|
73
|
+
phone_number: {
|
|
69
74
|
type: "string",
|
|
70
|
-
|
|
75
|
+
required: false,
|
|
71
76
|
filterable: true,
|
|
72
77
|
interface: {
|
|
73
78
|
label: {
|
|
74
|
-
"pt-br": "
|
|
75
|
-
"en": "
|
|
79
|
+
"pt-br": "Telefone",
|
|
80
|
+
"en": "Phone Number"
|
|
76
81
|
},
|
|
77
|
-
component: "
|
|
82
|
+
component: "input",
|
|
83
|
+
format: "phone"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
identifier: {
|
|
87
|
+
type: "string",
|
|
88
|
+
required: false,
|
|
89
|
+
filterable: true,
|
|
90
|
+
unique: true,
|
|
91
|
+
interface: {
|
|
92
|
+
label: {
|
|
93
|
+
"pt-br": "Identificador",
|
|
94
|
+
"en": "Identifier"
|
|
95
|
+
},
|
|
96
|
+
component: "input"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
key_memory: {
|
|
100
|
+
type: "string",
|
|
101
|
+
required: false,
|
|
102
|
+
filterable: false,
|
|
103
|
+
interface: {
|
|
104
|
+
label: {
|
|
105
|
+
"pt-br": "Chave de Memória",
|
|
106
|
+
"en": "Key Memory"
|
|
107
|
+
},
|
|
108
|
+
component: "input",
|
|
109
|
+
disabled: true
|
|
78
110
|
}
|
|
79
|
-
}
|
|
111
|
+
}
|
|
80
112
|
};
|
|
@@ -24,7 +24,7 @@ export const properties = {
|
|
|
24
24
|
datetime_del: {
|
|
25
25
|
type: "date",
|
|
26
26
|
filterable: true
|
|
27
|
-
},
|
|
27
|
+
},
|
|
28
28
|
id_account: {
|
|
29
29
|
type: "number",
|
|
30
30
|
required: true,
|
|
@@ -44,120 +44,75 @@ export const properties = {
|
|
|
44
44
|
component: "select",
|
|
45
45
|
disabled: true
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
|
|
47
|
+
},
|
|
48
|
+
id_agent: {
|
|
49
49
|
type: "number",
|
|
50
|
+
required: false,
|
|
51
|
+
updatable: true,
|
|
50
52
|
filterable: true,
|
|
51
53
|
index: true,
|
|
52
54
|
reference: {
|
|
53
|
-
module: "
|
|
54
|
-
label: "
|
|
55
|
+
module: "agents",
|
|
56
|
+
label: "title",
|
|
55
57
|
value: "id",
|
|
56
|
-
disabled: true
|
|
57
58
|
},
|
|
58
59
|
interface: {
|
|
59
60
|
label: {
|
|
60
|
-
"pt-br": "
|
|
61
|
-
"en": "
|
|
61
|
+
"pt-br": "Agente",
|
|
62
|
+
"en": "Agent"
|
|
62
63
|
},
|
|
63
|
-
component: "select"
|
|
64
|
+
component: "select",
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
|
-
|
|
67
|
+
id_objective: {
|
|
67
68
|
type: "number",
|
|
69
|
+
required: false,
|
|
70
|
+
updatable: true,
|
|
68
71
|
filterable: true,
|
|
69
72
|
index: true,
|
|
70
73
|
reference: {
|
|
71
|
-
module: "
|
|
72
|
-
label: "
|
|
74
|
+
module: "objectives",
|
|
75
|
+
label: "title",
|
|
73
76
|
value: "id",
|
|
74
|
-
disabled: true
|
|
75
77
|
},
|
|
76
78
|
interface: {
|
|
77
79
|
label: {
|
|
78
|
-
"pt-br": "
|
|
79
|
-
"en": "
|
|
80
|
+
"pt-br": "Objetivo",
|
|
81
|
+
"en": "Objective"
|
|
80
82
|
},
|
|
81
|
-
component: "select"
|
|
83
|
+
component: "select",
|
|
82
84
|
}
|
|
83
85
|
},
|
|
84
|
-
|
|
86
|
+
id_contact: {
|
|
85
87
|
type: "number",
|
|
88
|
+
required: true,
|
|
89
|
+
updatable: false,
|
|
86
90
|
filterable: true,
|
|
87
|
-
index: true,
|
|
88
91
|
reference: {
|
|
89
|
-
module: "
|
|
92
|
+
module: "contacts",
|
|
90
93
|
label: "name",
|
|
91
|
-
value: "id"
|
|
92
|
-
disabled: true
|
|
94
|
+
value: "id"
|
|
93
95
|
},
|
|
94
96
|
interface: {
|
|
95
97
|
label: {
|
|
96
|
-
"pt-br": "
|
|
97
|
-
"en": "
|
|
98
|
+
"pt-br": "Contato",
|
|
99
|
+
"en": "Contact"
|
|
98
100
|
},
|
|
99
|
-
component: "select"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
last_message_at: {
|
|
103
|
-
type: "date",
|
|
104
|
-
filterable: true,
|
|
105
|
-
updatable: true,
|
|
106
|
-
required: false,
|
|
107
|
-
interface: {
|
|
108
|
-
label: {
|
|
109
|
-
"pt-br": "Última mensagem",
|
|
110
|
-
"en": "Last message"
|
|
111
|
-
},
|
|
112
|
-
component: "datetime"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
id_last_message: {
|
|
116
|
-
type: "number",
|
|
117
|
-
filterable: true,
|
|
118
|
-
required: false,
|
|
119
|
-
index: true,
|
|
120
|
-
reference: {
|
|
121
|
-
module: "messages",
|
|
122
|
-
label: "id",
|
|
123
|
-
value: "id",
|
|
101
|
+
component: "select",
|
|
124
102
|
disabled: true
|
|
125
|
-
},
|
|
126
|
-
interface: {
|
|
127
|
-
label: {
|
|
128
|
-
"pt-br": "Última mensagem",
|
|
129
|
-
"en": "Last message"
|
|
130
|
-
},
|
|
131
|
-
component: "number"
|
|
132
103
|
}
|
|
133
104
|
},
|
|
134
|
-
|
|
135
|
-
type: "boolean",
|
|
136
|
-
default: false,
|
|
137
|
-
filterable: true,
|
|
138
|
-
interface: {
|
|
139
|
-
label: {
|
|
140
|
-
"pt-br": "Parar I.A.",
|
|
141
|
-
"en": "Stop A.I."
|
|
142
|
-
},
|
|
143
|
-
component: "checkbox"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
status: {
|
|
105
|
+
key_memory: {
|
|
147
106
|
type: "string",
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
options: [
|
|
151
|
-
{ value: "open", label: { "pt-br": "Aberto", "en": "Open" } },
|
|
152
|
-
{ value: "pending", label: { "pt-br": "Pendente", "en": "Pending" } },
|
|
153
|
-
{ value: "closed", label: { "pt-br": "Fechado", "en": "Closed" } },
|
|
154
|
-
],
|
|
107
|
+
required: false,
|
|
108
|
+
filterable: false,
|
|
155
109
|
interface: {
|
|
156
|
-
component: "select",
|
|
157
110
|
label: {
|
|
158
|
-
"pt-br": "
|
|
159
|
-
"en": "
|
|
160
|
-
}
|
|
111
|
+
"pt-br": "Chave de Memória",
|
|
112
|
+
"en": "Key Memory"
|
|
113
|
+
},
|
|
114
|
+
component: "input",
|
|
115
|
+
disabled: true
|
|
161
116
|
}
|
|
162
|
-
}
|
|
117
|
+
}
|
|
163
118
|
};
|
|
@@ -45,23 +45,24 @@ export const properties = {
|
|
|
45
45
|
disabled: true
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
id_agent: {
|
|
49
49
|
type: "number",
|
|
50
|
-
filterable: true,
|
|
51
50
|
required: true,
|
|
51
|
+
updatable: false,
|
|
52
|
+
filterable: true,
|
|
52
53
|
index: true,
|
|
53
54
|
reference: {
|
|
54
|
-
module: "
|
|
55
|
+
module: "agents",
|
|
55
56
|
label: "title",
|
|
56
57
|
value: "id",
|
|
57
|
-
disabled: true
|
|
58
58
|
},
|
|
59
59
|
interface: {
|
|
60
60
|
label: {
|
|
61
|
-
"pt-br": "
|
|
62
|
-
"en": "
|
|
61
|
+
"pt-br": "Agente",
|
|
62
|
+
"en": "Agent"
|
|
63
63
|
},
|
|
64
|
-
component: "
|
|
64
|
+
component: "select",
|
|
65
|
+
disabled: true
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
order: {
|
package/src/product.js
CHANGED
|
@@ -3,19 +3,9 @@
|
|
|
3
3
|
import accounts from './modules/accounts/index.js';
|
|
4
4
|
import users from './modules/users/index.js';
|
|
5
5
|
import agents from './modules/agents/index.js';
|
|
6
|
-
import channels from './modules/channels/index.js';
|
|
7
|
-
import companies from './modules/companies/index.js';
|
|
8
|
-
import conversations from './modules/conversations/index.js';
|
|
9
|
-
import conversations_tags from './modules/conversations_tags/index.js';
|
|
10
|
-
import credentials from './modules/credentials/index.js';
|
|
11
|
-
import leads from './modules/leads/index.js';
|
|
12
|
-
import leads_tags from './modules/leads_tags/index.js';
|
|
13
|
-
import messages from './modules/messages/index.js';
|
|
14
|
-
import missions from './modules/missions/index.js';
|
|
15
6
|
import objectives from './modules/objectives/index.js';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import tools from './modules/tools/index.js';
|
|
7
|
+
import contacts from './modules/contacts/index.js';
|
|
8
|
+
import conversations from './modules/conversations/index.js';
|
|
19
9
|
|
|
20
10
|
/* Shared */
|
|
21
11
|
|
|
@@ -43,19 +33,9 @@ export default {
|
|
|
43
33
|
accounts,
|
|
44
34
|
users,
|
|
45
35
|
agents,
|
|
46
|
-
channels,
|
|
47
|
-
companies,
|
|
48
|
-
conversations,
|
|
49
|
-
conversations_tags,
|
|
50
|
-
credentials,
|
|
51
|
-
leads,
|
|
52
|
-
leads_tags,
|
|
53
|
-
messages,
|
|
54
|
-
missions,
|
|
55
36
|
objectives,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tools
|
|
37
|
+
contacts,
|
|
38
|
+
conversations
|
|
59
39
|
},
|
|
60
40
|
documentation: {
|
|
61
41
|
title: "GreatAgents API",
|