@greatapps/greatagents 0.1.11 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatapps/greatagents",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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: "contacts",
6
+ cache: { ttlView: 30, ttlList: 0 },
7
+ params: [ "id_account" ],
8
+ properties: properties,
9
+ routes: {}
10
+ };
@@ -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,10 @@
1
+ import { properties } from "./properties.js";
2
+
3
+ export default {
4
+ product: "greatagents",
5
+ name: "conversations",
6
+ cache: { ttlView: 30, ttlList: 0 },
7
+ params: [ "id_account" ],
8
+ properties: properties,
9
+ routes: {}
10
+ };
@@ -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",