@greatapps/greatagents 0.1.20 → 0.1.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatapps/greatagents",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Schemas para GreatAgents",
5
5
  "main": "./src/product.js",
6
6
  "type": "module"
@@ -0,0 +1,10 @@
1
+ import { properties } from "./properties.js";
2
+
3
+ export default {
4
+ product: "greatagents",
5
+ name: "contact_users",
6
+ cache: { ttlView: 30, ttlList: 0 },
7
+ params: [ "id_account" ],
8
+ properties: properties,
9
+ routes: {}
10
+ };
@@ -0,0 +1,119 @@
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
+ contact_identifier: {
49
+ type: "string",
50
+ required: true,
51
+ filterable: true,
52
+ index: true,
53
+ validation: {
54
+ maxLength: 255
55
+ },
56
+ interface: {
57
+ label: {
58
+ "pt-br": "Identificador do Contato",
59
+ "en": "Contact Identifier"
60
+ },
61
+ component: "input",
62
+ placeholder: {
63
+ "pt-br": "Identificador normalizado do contato (telefone, email, username)",
64
+ "en": "Normalized contact identifier (phone, email, username)"
65
+ }
66
+ }
67
+ },
68
+ id_user: {
69
+ type: "number",
70
+ required: true,
71
+ filterable: true,
72
+ index: true,
73
+ reference: {
74
+ module: "users",
75
+ label: "name",
76
+ value: "id"
77
+ },
78
+ interface: {
79
+ label: {
80
+ "pt-br": "Usuário",
81
+ "en": "User"
82
+ },
83
+ component: "select"
84
+ }
85
+ },
86
+ target_account_id: {
87
+ type: "number",
88
+ required: true,
89
+ filterable: true,
90
+ index: true,
91
+ reference: {
92
+ module: "accounts",
93
+ label: "name",
94
+ value: "id"
95
+ },
96
+ interface: {
97
+ label: {
98
+ "pt-br": "Conta Alvo",
99
+ "en": "Target Account"
100
+ },
101
+ component: "select"
102
+ }
103
+ },
104
+ role: {
105
+ type: "string",
106
+ default: "admin",
107
+ filterable: true,
108
+ validation: {
109
+ maxLength: 50
110
+ },
111
+ interface: {
112
+ label: {
113
+ "pt-br": "Papel",
114
+ "en": "Role"
115
+ },
116
+ component: "select"
117
+ }
118
+ }
119
+ };
package/src/product.js CHANGED
@@ -10,6 +10,7 @@ import prompt_versions from './modules/prompt_versions/index.js';
10
10
  import tools from './modules/tools/index.js';
11
11
  import agent_tools from './modules/agent_tools/index.js';
12
12
  import tool_credentials from './modules/tool_credentials/index.js';
13
+ import contact_users from './modules/contact_users/index.js';
13
14
 
14
15
  /* Shared */
15
16
 
@@ -43,7 +44,8 @@ export default {
43
44
  prompt_versions,
44
45
  tools,
45
46
  agent_tools,
46
- tool_credentials
47
+ tool_credentials,
48
+ contact_users
47
49
  },
48
50
  documentation: {
49
51
  title: "GreatAgents API",