@greatapps/greatagents 0.1.11 → 0.1.13
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/agents/properties.js +13 -1
- package/src/modules/contacts/index.js +10 -0
- package/src/modules/contacts/properties.js +112 -0
- package/src/modules/conversations/index.js +10 -0
- package/src/modules/conversations/properties.js +118 -0
- package/src/product.js +5 -1
package/package.json
CHANGED
|
@@ -104,7 +104,19 @@ export const properties = {
|
|
|
104
104
|
"en": "Provide instructions for the agent to follow."
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
},
|
|
107
|
+
},
|
|
108
|
+
external_token: {
|
|
109
|
+
type: "string",
|
|
110
|
+
filterable: true,
|
|
111
|
+
unique: true,
|
|
112
|
+
interface: {
|
|
113
|
+
label: {
|
|
114
|
+
"pt-br": "Token externo",
|
|
115
|
+
"en": "External token"
|
|
116
|
+
},
|
|
117
|
+
component: "input"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
108
120
|
delay_typing: {
|
|
109
121
|
type: "number",
|
|
110
122
|
default: 0,
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
interface: {
|
|
53
|
+
label: {
|
|
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"
|
|
68
|
+
},
|
|
69
|
+
component: "input",
|
|
70
|
+
format: "email"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
phone_number: {
|
|
74
|
+
type: "string",
|
|
75
|
+
required: false,
|
|
76
|
+
filterable: true,
|
|
77
|
+
interface: {
|
|
78
|
+
label: {
|
|
79
|
+
"pt-br": "Telefone",
|
|
80
|
+
"en": "Phone Number"
|
|
81
|
+
},
|
|
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
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
required: false,
|
|
51
|
+
updatable: true,
|
|
52
|
+
filterable: true,
|
|
53
|
+
index: true,
|
|
54
|
+
reference: {
|
|
55
|
+
module: "agents",
|
|
56
|
+
label: "title",
|
|
57
|
+
value: "id",
|
|
58
|
+
},
|
|
59
|
+
interface: {
|
|
60
|
+
label: {
|
|
61
|
+
"pt-br": "Agente",
|
|
62
|
+
"en": "Agent"
|
|
63
|
+
},
|
|
64
|
+
component: "select",
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
id_objective: {
|
|
68
|
+
type: "number",
|
|
69
|
+
required: false,
|
|
70
|
+
updatable: true,
|
|
71
|
+
filterable: true,
|
|
72
|
+
index: true,
|
|
73
|
+
reference: {
|
|
74
|
+
module: "objectives",
|
|
75
|
+
label: "title",
|
|
76
|
+
value: "id",
|
|
77
|
+
},
|
|
78
|
+
interface: {
|
|
79
|
+
label: {
|
|
80
|
+
"pt-br": "Objetivo",
|
|
81
|
+
"en": "Objective"
|
|
82
|
+
},
|
|
83
|
+
component: "select",
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
id_contact: {
|
|
87
|
+
type: "number",
|
|
88
|
+
required: true,
|
|
89
|
+
updatable: false,
|
|
90
|
+
filterable: true,
|
|
91
|
+
reference: {
|
|
92
|
+
module: "contacts",
|
|
93
|
+
label: "name",
|
|
94
|
+
value: "id"
|
|
95
|
+
},
|
|
96
|
+
interface: {
|
|
97
|
+
label: {
|
|
98
|
+
"pt-br": "Contato",
|
|
99
|
+
"en": "Contact"
|
|
100
|
+
},
|
|
101
|
+
component: "select",
|
|
102
|
+
disabled: true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
key_memory: {
|
|
106
|
+
type: "string",
|
|
107
|
+
required: false,
|
|
108
|
+
filterable: false,
|
|
109
|
+
interface: {
|
|
110
|
+
label: {
|
|
111
|
+
"pt-br": "Chave de Memória",
|
|
112
|
+
"en": "Key Memory"
|
|
113
|
+
},
|
|
114
|
+
component: "input",
|
|
115
|
+
disabled: true
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
package/src/product.js
CHANGED
|
@@ -4,6 +4,8 @@ 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
6
|
import objectives from './modules/objectives/index.js';
|
|
7
|
+
import contacts from './modules/contacts/index.js';
|
|
8
|
+
import conversations from './modules/conversations/index.js';
|
|
7
9
|
|
|
8
10
|
/* Shared */
|
|
9
11
|
|
|
@@ -31,7 +33,9 @@ export default {
|
|
|
31
33
|
accounts,
|
|
32
34
|
users,
|
|
33
35
|
agents,
|
|
34
|
-
objectives
|
|
36
|
+
objectives,
|
|
37
|
+
contacts,
|
|
38
|
+
conversations
|
|
35
39
|
},
|
|
36
40
|
documentation: {
|
|
37
41
|
title: "GreatAgents API",
|