@rebasepro/common 0.9.1-canary.f2f61da → 0.9.1-canary.fd3754b

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.
@@ -56,7 +56,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
56
56
  readonly name: "Password Hash";
57
57
  readonly type: "string";
58
58
  readonly columnName: "password_hash";
59
- readonly excludeFromApi: true;
60
59
  readonly ui: {
61
60
  readonly hideFromCollection: true;
62
61
  readonly disabled: {
@@ -80,7 +79,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
80
79
  readonly name: "Email Verification Token";
81
80
  readonly type: "string";
82
81
  readonly columnName: "email_verification_token";
83
- readonly excludeFromApi: true;
84
82
  readonly ui: {
85
83
  readonly hideFromCollection: true;
86
84
  readonly disabled: {
@@ -185,7 +183,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
185
183
  readonly name: "Password Hash";
186
184
  readonly type: "string";
187
185
  readonly columnName: "password_hash";
188
- readonly excludeFromApi: true;
189
186
  readonly ui: {
190
187
  readonly hideFromCollection: true;
191
188
  readonly disabled: {
@@ -209,7 +206,6 @@ export declare const defaultUsersCollection: import("@rebasepro/types").Postgres
209
206
  readonly name: "Email Verification Token";
210
207
  readonly type: "string";
211
208
  readonly columnName: "email_verification_token";
212
- readonly excludeFromApi: true;
213
209
  readonly ui: {
214
210
  readonly hideFromCollection: true;
215
211
  readonly disabled: {
@@ -1,17 +1,4 @@
1
1
  import { DataDriver, RebaseData, RebaseSdkData } from "@rebasepro/types";
2
- export interface EntityDataOptions {
3
- /**
4
- * Look up a collection's config by slug, to derive row addresses from its
5
- * primary keys.
6
- *
7
- * Called lazily rather than up front: the data layer is created by `Rebase`,
8
- * which sits *above* the admin that owns the collections, so a resolver
9
- * registered on mount would otherwise arrive too late to be seen.
10
- */
11
- resolveCollection?: (slug: string) => {
12
- properties?: Record<string, unknown>;
13
- } | undefined;
14
- }
15
2
  /**
16
3
  * Build a `RebaseData` object from a `DataDriver` using JavaScript Proxy.
17
4
  *
@@ -24,7 +11,7 @@ export interface EntityDataOptions {
24
11
  * await data.products.create({ name: "Camera", price: 299 });
25
12
  * const { data: items } = await data.products.find({ where: { status: ["==", "published"] } });
26
13
  */
27
- export declare function buildRebaseData(driver: DataDriver, options?: EntityDataOptions): RebaseData;
14
+ export declare function buildRebaseData(driver: DataDriver): RebaseData;
28
15
  /**
29
16
  * Wrap a flat {@link RebaseSdkData} into a Entity-shaped {@link RebaseData}.
30
17
  *
@@ -34,7 +21,7 @@ export declare function buildRebaseData(driver: DataDriver, options?: EntityData
34
21
  * CMS `RebaseDataContext` — without it the admin renders rows with only their
35
22
  * `id`.
36
23
  */
37
- export declare function wrapAsEntityData(sdkData: RebaseSdkData, options?: EntityDataOptions): RebaseData;
24
+ export declare function wrapAsEntityData(sdkData: RebaseSdkData): RebaseData;
38
25
  /**
39
26
  * Wrap a Entity-shaped {@link RebaseData} into a flat {@link RebaseSdkData}.
40
27
  *