@greatapps/greatauth 0.2.0 → 0.2.1
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
|
@@ -0,0 +1,105 @@
|
|
|
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_user: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
filterable: true,
|
|
32
|
+
updatable: false,
|
|
33
|
+
unique: true,
|
|
34
|
+
index: true,
|
|
35
|
+
reference: {
|
|
36
|
+
module: "users",
|
|
37
|
+
label: "email",
|
|
38
|
+
value: "id",
|
|
39
|
+
disabled: true,
|
|
40
|
+
},
|
|
41
|
+
interface: {
|
|
42
|
+
label: {
|
|
43
|
+
"pt-br": "Utilizador",
|
|
44
|
+
en: "User",
|
|
45
|
+
},
|
|
46
|
+
component: "select",
|
|
47
|
+
disabled: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
scope: {
|
|
51
|
+
type: "string",
|
|
52
|
+
default: "full",
|
|
53
|
+
filterable: true,
|
|
54
|
+
maxLength: 50,
|
|
55
|
+
options: [
|
|
56
|
+
{
|
|
57
|
+
value: "full",
|
|
58
|
+
title: { "pt-br": "Acesso total", en: "Full access" },
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "read_only",
|
|
62
|
+
title: { "pt-br": "Apenas leitura", en: "Read only" },
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: "accounts_only",
|
|
66
|
+
title: { "pt-br": "Apenas contas", en: "Accounts only" },
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
interface: {
|
|
70
|
+
label: {
|
|
71
|
+
"pt-br": "Escopo",
|
|
72
|
+
en: "Scope",
|
|
73
|
+
},
|
|
74
|
+
component: "select",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
granted_by: {
|
|
78
|
+
type: "number",
|
|
79
|
+
filterable: true,
|
|
80
|
+
reference: {
|
|
81
|
+
module: "users",
|
|
82
|
+
label: "email",
|
|
83
|
+
value: "id",
|
|
84
|
+
},
|
|
85
|
+
interface: {
|
|
86
|
+
label: {
|
|
87
|
+
"pt-br": "Concedido por",
|
|
88
|
+
en: "Granted by",
|
|
89
|
+
},
|
|
90
|
+
component: "select",
|
|
91
|
+
disabled: true,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
notes: {
|
|
95
|
+
type: "string",
|
|
96
|
+
maxLength: 1000,
|
|
97
|
+
interface: {
|
|
98
|
+
label: {
|
|
99
|
+
"pt-br": "Notas",
|
|
100
|
+
en: "Notes",
|
|
101
|
+
},
|
|
102
|
+
component: "input",
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
};
|
package/src/product.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import accounts from "./modules/accounts/index.js";
|
|
4
4
|
import users from "./modules/users/index.js";
|
|
5
5
|
import user_phones from "./modules/user_phones/index.js";
|
|
6
|
+
import superadmins from "./modules/superadmins/index.js";
|
|
6
7
|
|
|
7
8
|
/* Shared */
|
|
8
9
|
|
|
@@ -30,6 +31,7 @@ export default {
|
|
|
30
31
|
accounts,
|
|
31
32
|
users,
|
|
32
33
|
user_phones,
|
|
34
|
+
superadmins,
|
|
33
35
|
},
|
|
34
36
|
documentation: {
|
|
35
37
|
title: "Great Platform API",
|