@rebasepro/cli 0.2.4 → 0.2.5
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": "@rebasepro/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Developer tools for Rebase projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"execa": "^9.6.1",
|
|
32
32
|
"inquirer": "12.11.1",
|
|
33
33
|
"jiti": "^2.7.0",
|
|
34
|
-
"@rebasepro/
|
|
35
|
-
"@rebasepro/
|
|
36
|
-
"@rebasepro/
|
|
37
|
-
"@rebasepro/
|
|
34
|
+
"@rebasepro/sdk-generator": "0.2.5",
|
|
35
|
+
"@rebasepro/server-core": "0.2.5",
|
|
36
|
+
"@rebasepro/types": "0.2.5",
|
|
37
|
+
"@rebasepro/server-postgresql": "0.2.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^20.19.41",
|
|
@@ -2,6 +2,5 @@ import postsCollection from "./posts.js";
|
|
|
2
2
|
import authorsCollection from "./authors.js";
|
|
3
3
|
import tagsCollection from "./tags.js";
|
|
4
4
|
import usersCollection from "./users.js";
|
|
5
|
-
import rolesCollection from "./roles.js";
|
|
6
5
|
|
|
7
|
-
export const collections = [postsCollection, authorsCollection, tagsCollection, usersCollection
|
|
6
|
+
export const collections = [postsCollection, authorsCollection, tagsCollection, usersCollection];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
2
|
-
import { resetPasswordAction, deleteEntityAction
|
|
3
|
-
import rolesCollection from "./roles.js";
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import { resetPasswordAction, deleteEntityAction } from "@rebasepro/admin";
|
|
4
3
|
|
|
5
4
|
const usersCollection: EntityCollection = {
|
|
6
5
|
name: "Users",
|
|
@@ -12,7 +11,6 @@ const usersCollection: EntityCollection = {
|
|
|
12
11
|
group: "Settings",
|
|
13
12
|
openEntityMode: "dialog",
|
|
14
13
|
disableDefaultActions: ["copy"],
|
|
15
|
-
Actions: [RolesFilterSelect],
|
|
16
14
|
entityActions: [
|
|
17
15
|
resetPasswordAction,
|
|
18
16
|
{
|
|
@@ -41,6 +39,7 @@ const usersCollection: EntityCollection = {
|
|
|
41
39
|
displayName: {
|
|
42
40
|
name: "Name",
|
|
43
41
|
type: "string",
|
|
42
|
+
columnName: "display_name",
|
|
44
43
|
validation: {
|
|
45
44
|
required: true
|
|
46
45
|
}
|
|
@@ -48,21 +47,20 @@ const usersCollection: EntityCollection = {
|
|
|
48
47
|
photoURL: {
|
|
49
48
|
name: "Photo URL",
|
|
50
49
|
type: "string",
|
|
50
|
+
columnName: "photo_url",
|
|
51
51
|
url: "image"
|
|
52
52
|
},
|
|
53
53
|
roles: {
|
|
54
54
|
name: "Roles",
|
|
55
|
-
type: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
ui: {
|
|
65
|
-
Field: UserRolesSelectField
|
|
55
|
+
type: "array",
|
|
56
|
+
of: {
|
|
57
|
+
name: "Role",
|
|
58
|
+
type: "string",
|
|
59
|
+
enum: {
|
|
60
|
+
admin: "Admin",
|
|
61
|
+
editor: "Editor",
|
|
62
|
+
viewer: "Viewer"
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
passwordHash: {
|
|
@@ -114,6 +112,7 @@ const usersCollection: EntityCollection = {
|
|
|
114
112
|
createdAt: {
|
|
115
113
|
name: "Created At",
|
|
116
114
|
type: "date",
|
|
115
|
+
columnName: "created_at",
|
|
117
116
|
ui: {
|
|
118
117
|
readOnly: true
|
|
119
118
|
}
|