@rebasepro/common 0.10.0 → 0.10.1-canary.0a881d4

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.
@@ -4,15 +4,18 @@
4
4
  * Prepended to the developer's collections array by the admin and server.
5
5
  * Slug-based dedup (Map keyed by slug, last-write-wins) lets developers
6
6
  * override by defining their own collection with `slug: "users"`.
7
+ *
8
+ * Schema only — no `admin` block. This package is on the backend's dependency path,
9
+ * where that field does not exist: `@rebasepro/admin-types` adds it by declaration
10
+ * merging, and a BaaS install never installs that. The scaffolded
11
+ * `config/collections/users.ts` carries the presentation for projects that want this
12
+ * collection in their panel, which is also where it is editable.
7
13
  */
8
14
  export declare const defaultUsersCollection: import("@rebasepro/types").PostgresCollectionConfig<import("@rebasepro/types").InferEntityType<{
9
15
  readonly id: {
10
16
  readonly name: "ID";
11
17
  readonly type: "string";
12
18
  readonly isId: "uuid";
13
- readonly ui: {
14
- readonly readOnly: true;
15
- };
16
19
  };
17
20
  readonly email: {
18
21
  readonly name: "Email";
@@ -34,9 +37,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
34
37
  readonly name: "Photo URL";
35
38
  readonly type: "string";
36
39
  readonly columnName: "photo_url";
37
- readonly ui: {
38
- readonly url: "image";
39
- };
40
40
  };
41
41
  readonly roles: {
42
42
  readonly name: "Roles";
@@ -57,47 +57,23 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
57
57
  readonly type: "string";
58
58
  readonly columnName: "password_hash";
59
59
  readonly excludeFromApi: true;
60
- readonly ui: {
61
- readonly hideFromCollection: true;
62
- readonly disabled: {
63
- readonly hidden: true;
64
- };
65
- };
66
60
  };
67
61
  readonly emailVerified: {
68
62
  readonly name: "Email Verified";
69
63
  readonly type: "boolean";
70
64
  readonly columnName: "email_verified";
71
65
  readonly defaultValue: false;
72
- readonly ui: {
73
- readonly hideFromCollection: true;
74
- readonly disabled: {
75
- readonly hidden: true;
76
- };
77
- };
78
66
  };
79
67
  readonly emailVerificationToken: {
80
68
  readonly name: "Email Verification Token";
81
69
  readonly type: "string";
82
70
  readonly columnName: "email_verification_token";
83
71
  readonly excludeFromApi: true;
84
- readonly ui: {
85
- readonly hideFromCollection: true;
86
- readonly disabled: {
87
- readonly hidden: true;
88
- };
89
- };
90
72
  };
91
73
  readonly emailVerificationSentAt: {
92
74
  readonly name: "Email Verification Sent At";
93
75
  readonly type: "date";
94
76
  readonly columnName: "email_verification_sent_at";
95
- readonly ui: {
96
- readonly hideFromCollection: true;
97
- readonly disabled: {
98
- readonly hidden: true;
99
- };
100
- };
101
77
  };
102
78
  readonly metadata: {
103
79
  readonly name: "Metadata";
@@ -105,33 +81,18 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
105
81
  readonly keyValue: true;
106
82
  readonly properties: {};
107
83
  readonly defaultValue: {};
108
- readonly ui: {
109
- readonly hideFromCollection: true;
110
- readonly disabled: {
111
- readonly hidden: true;
112
- };
113
- };
114
84
  };
115
85
  readonly createdAt: {
116
86
  readonly name: "Created At";
117
87
  readonly type: "date";
118
88
  readonly columnName: "created_at";
119
89
  readonly autoValue: "on_create";
120
- readonly ui: {
121
- readonly readOnly: true;
122
- };
123
90
  };
124
91
  readonly updatedAt: {
125
92
  readonly name: "Updated At";
126
93
  readonly type: "date";
127
94
  readonly columnName: "updated_at";
128
95
  readonly autoValue: "on_update";
129
- readonly ui: {
130
- readonly hideFromCollection: true;
131
- readonly disabled: {
132
- readonly hidden: true;
133
- };
134
- };
135
96
  };
136
97
  }>, import("@rebasepro/types").User> & {
137
98
  properties: {
@@ -139,9 +100,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
139
100
  readonly name: "ID";
140
101
  readonly type: "string";
141
102
  readonly isId: "uuid";
142
- readonly ui: {
143
- readonly readOnly: true;
144
- };
145
103
  };
146
104
  readonly email: {
147
105
  readonly name: "Email";
@@ -163,9 +121,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
163
121
  readonly name: "Photo URL";
164
122
  readonly type: "string";
165
123
  readonly columnName: "photo_url";
166
- readonly ui: {
167
- readonly url: "image";
168
- };
169
124
  };
170
125
  readonly roles: {
171
126
  readonly name: "Roles";
@@ -186,47 +141,23 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
186
141
  readonly type: "string";
187
142
  readonly columnName: "password_hash";
188
143
  readonly excludeFromApi: true;
189
- readonly ui: {
190
- readonly hideFromCollection: true;
191
- readonly disabled: {
192
- readonly hidden: true;
193
- };
194
- };
195
144
  };
196
145
  readonly emailVerified: {
197
146
  readonly name: "Email Verified";
198
147
  readonly type: "boolean";
199
148
  readonly columnName: "email_verified";
200
149
  readonly defaultValue: false;
201
- readonly ui: {
202
- readonly hideFromCollection: true;
203
- readonly disabled: {
204
- readonly hidden: true;
205
- };
206
- };
207
150
  };
208
151
  readonly emailVerificationToken: {
209
152
  readonly name: "Email Verification Token";
210
153
  readonly type: "string";
211
154
  readonly columnName: "email_verification_token";
212
155
  readonly excludeFromApi: true;
213
- readonly ui: {
214
- readonly hideFromCollection: true;
215
- readonly disabled: {
216
- readonly hidden: true;
217
- };
218
- };
219
156
  };
220
157
  readonly emailVerificationSentAt: {
221
158
  readonly name: "Email Verification Sent At";
222
159
  readonly type: "date";
223
160
  readonly columnName: "email_verification_sent_at";
224
- readonly ui: {
225
- readonly hideFromCollection: true;
226
- readonly disabled: {
227
- readonly hidden: true;
228
- };
229
- };
230
161
  };
231
162
  readonly metadata: {
232
163
  readonly name: "Metadata";
@@ -234,33 +165,18 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
234
165
  readonly keyValue: true;
235
166
  readonly properties: {};
236
167
  readonly defaultValue: {};
237
- readonly ui: {
238
- readonly hideFromCollection: true;
239
- readonly disabled: {
240
- readonly hidden: true;
241
- };
242
- };
243
168
  };
244
169
  readonly createdAt: {
245
170
  readonly name: "Created At";
246
171
  readonly type: "date";
247
172
  readonly columnName: "created_at";
248
173
  readonly autoValue: "on_create";
249
- readonly ui: {
250
- readonly readOnly: true;
251
- };
252
174
  };
253
175
  readonly updatedAt: {
254
176
  readonly name: "Updated At";
255
177
  readonly type: "date";
256
178
  readonly columnName: "updated_at";
257
179
  readonly autoValue: "on_update";
258
- readonly ui: {
259
- readonly hideFromCollection: true;
260
- readonly disabled: {
261
- readonly hidden: true;
262
- };
263
- };
264
180
  };
265
181
  };
266
182
  };