@greatapps/greatauth 0.2.1 → 0.2.4
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/accounts/properties.js +13 -7
- package/src/modules/products/index.js +11 -0
- package/src/modules/products/properties.js +82 -0
- package/src/modules/profiles/index.js +10 -0
- package/src/modules/profiles/properties.js +27 -0
- package/src/modules/users/properties.js +0 -15
- package/src/product.js +4 -0
package/package.json
CHANGED
|
@@ -60,17 +60,23 @@ export const properties = {
|
|
|
60
60
|
maxLength: 255,
|
|
61
61
|
index: true,
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
type: "
|
|
65
|
-
|
|
63
|
+
id_product: {
|
|
64
|
+
type: "number",
|
|
65
|
+
filterable: true,
|
|
66
|
+
required: true,
|
|
67
|
+
reference: {
|
|
68
|
+
module: "products",
|
|
69
|
+
label: "name",
|
|
70
|
+
value: "id",
|
|
71
|
+
},
|
|
66
72
|
interface: {
|
|
67
73
|
label: {
|
|
68
|
-
"pt-br": "
|
|
69
|
-
en: "
|
|
74
|
+
"pt-br": "Produto",
|
|
75
|
+
en: "Product",
|
|
70
76
|
},
|
|
71
77
|
description: {
|
|
72
|
-
"pt-br": "
|
|
73
|
-
en: "
|
|
78
|
+
"pt-br": "Produto ao qual esta conta pertence",
|
|
79
|
+
en: "Product this account belongs to",
|
|
74
80
|
},
|
|
75
81
|
component: "select",
|
|
76
82
|
},
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
slug: {
|
|
29
|
+
type: "string",
|
|
30
|
+
required: true,
|
|
31
|
+
unique: true,
|
|
32
|
+
searchable: true,
|
|
33
|
+
filterable: true,
|
|
34
|
+
maxLength: 50,
|
|
35
|
+
interface: {
|
|
36
|
+
label: {
|
|
37
|
+
"pt-br": "Slug",
|
|
38
|
+
en: "Slug",
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
"pt-br": "Identificador único do produto (ex: gclinic, gadmin)",
|
|
42
|
+
en: "Unique product identifier (e.g., gclinic, gadmin)",
|
|
43
|
+
},
|
|
44
|
+
component: "input",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
name: {
|
|
48
|
+
type: "string",
|
|
49
|
+
required: true,
|
|
50
|
+
searchable: true,
|
|
51
|
+
maxLength: 255,
|
|
52
|
+
interface: {
|
|
53
|
+
label: {
|
|
54
|
+
"pt-br": "Nome",
|
|
55
|
+
en: "Name",
|
|
56
|
+
},
|
|
57
|
+
description: {
|
|
58
|
+
"pt-br": "Nome de exibição do produto",
|
|
59
|
+
en: "Product display name",
|
|
60
|
+
},
|
|
61
|
+
component: "input",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
status: {
|
|
65
|
+
type: "string",
|
|
66
|
+
filterable: true,
|
|
67
|
+
maxLength: 20,
|
|
68
|
+
default: "active",
|
|
69
|
+
enum: ["active", "inactive"],
|
|
70
|
+
interface: {
|
|
71
|
+
label: {
|
|
72
|
+
"pt-br": "Status",
|
|
73
|
+
en: "Status",
|
|
74
|
+
},
|
|
75
|
+
component: "select",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
config: {
|
|
79
|
+
type: "json",
|
|
80
|
+
default: {},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const properties = {
|
|
2
|
+
slug: {
|
|
3
|
+
type: "string",
|
|
4
|
+
required: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
maxLength: 50,
|
|
7
|
+
searchable: true,
|
|
8
|
+
filterable: true,
|
|
9
|
+
interface: {
|
|
10
|
+
label: { "pt-br": "Slug", en: "Slug" },
|
|
11
|
+
component: "input",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
name: {
|
|
15
|
+
type: "string",
|
|
16
|
+
required: true,
|
|
17
|
+
maxLength: 100,
|
|
18
|
+
searchable: true,
|
|
19
|
+
filterable: true,
|
|
20
|
+
interface: {
|
|
21
|
+
label: { "pt-br": "Nome", en: "Name" },
|
|
22
|
+
component: "input",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default properties;
|
|
@@ -142,19 +142,4 @@ export const properties = {
|
|
|
142
142
|
type: "date",
|
|
143
143
|
filterable: true,
|
|
144
144
|
},
|
|
145
|
-
products: {
|
|
146
|
-
type: "json",
|
|
147
|
-
default: [],
|
|
148
|
-
interface: {
|
|
149
|
-
label: {
|
|
150
|
-
"pt-br": "Produtos",
|
|
151
|
-
en: "Products",
|
|
152
|
-
},
|
|
153
|
-
description: {
|
|
154
|
-
"pt-br": "Produtos habilitados para este usuário",
|
|
155
|
-
en: "Products enabled for this user",
|
|
156
|
-
},
|
|
157
|
-
component: "select",
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
145
|
};
|
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 user_phones from "./modules/user_phones/index.js";
|
|
6
6
|
import superadmins from "./modules/superadmins/index.js";
|
|
7
|
+
import products from "./modules/products/index.js";
|
|
8
|
+
import profiles from "./modules/profiles/index.js";
|
|
7
9
|
|
|
8
10
|
/* Shared */
|
|
9
11
|
|
|
@@ -32,6 +34,8 @@ export default {
|
|
|
32
34
|
users,
|
|
33
35
|
user_phones,
|
|
34
36
|
superadmins,
|
|
37
|
+
products,
|
|
38
|
+
profiles,
|
|
35
39
|
},
|
|
36
40
|
documentation: {
|
|
37
41
|
title: "Great Platform API",
|