@rebasepro/server-mongodb 0.0.1-canary.4d4fb3e

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.
Files changed (125) hide show
  1. package/LICENSE +6 -0
  2. package/dist/index.es.js +875 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.umd.js +878 -0
  5. package/dist/index.umd.js.map +1 -0
  6. package/dist/server-mongodb/src/connection.d.ts +35 -0
  7. package/dist/server-mongodb/src/connection.d.ts.map +1 -0
  8. package/dist/server-mongodb/src/db/MongoConditionBuilder.d.ts +64 -0
  9. package/dist/server-mongodb/src/db/MongoConditionBuilder.d.ts.map +1 -0
  10. package/dist/server-mongodb/src/db/MongoEntityService.d.ts +98 -0
  11. package/dist/server-mongodb/src/db/MongoEntityService.d.ts.map +1 -0
  12. package/dist/server-mongodb/src/factory.d.ts +139 -0
  13. package/dist/server-mongodb/src/factory.d.ts.map +1 -0
  14. package/dist/server-mongodb/src/index.d.ts +17 -0
  15. package/dist/server-mongodb/src/index.d.ts.map +1 -0
  16. package/dist/server-mongodb/src/services/MongoDriver.d.ts +81 -0
  17. package/dist/server-mongodb/src/services/MongoDriver.d.ts.map +1 -0
  18. package/dist/server-mongodb/src/services/MongoRealtimeService.d.ts +65 -0
  19. package/dist/server-mongodb/src/services/MongoRealtimeService.d.ts.map +1 -0
  20. package/dist/server-mongodb/src/useMongoDriver.d.ts +18 -0
  21. package/dist/server-mongodb/src/useMongoDriver.d.ts.map +1 -0
  22. package/dist/server-mongodb/src/utils.d.ts +10 -0
  23. package/dist/server-mongodb/src/utils.d.ts.map +1 -0
  24. package/dist/types/src/controllers/analytics_controller.d.ts +8 -0
  25. package/dist/types/src/controllers/analytics_controller.d.ts.map +1 -0
  26. package/dist/types/src/controllers/auth.d.ts +118 -0
  27. package/dist/types/src/controllers/auth.d.ts.map +1 -0
  28. package/dist/types/src/controllers/client.d.ts +59 -0
  29. package/dist/types/src/controllers/client.d.ts.map +1 -0
  30. package/dist/types/src/controllers/collection_registry.d.ts +45 -0
  31. package/dist/types/src/controllers/collection_registry.d.ts.map +1 -0
  32. package/dist/types/src/controllers/customization_controller.d.ts +55 -0
  33. package/dist/types/src/controllers/customization_controller.d.ts.map +1 -0
  34. package/dist/types/src/controllers/data.d.ts +142 -0
  35. package/dist/types/src/controllers/data.d.ts.map +1 -0
  36. package/dist/types/src/controllers/data_driver.d.ts +169 -0
  37. package/dist/types/src/controllers/data_driver.d.ts.map +1 -0
  38. package/dist/types/src/controllers/database_admin.d.ts +12 -0
  39. package/dist/types/src/controllers/database_admin.d.ts.map +1 -0
  40. package/dist/types/src/controllers/dialogs_controller.d.ts +37 -0
  41. package/dist/types/src/controllers/dialogs_controller.d.ts.map +1 -0
  42. package/dist/types/src/controllers/effective_role.d.ts +5 -0
  43. package/dist/types/src/controllers/effective_role.d.ts.map +1 -0
  44. package/dist/types/src/controllers/index.d.ts +18 -0
  45. package/dist/types/src/controllers/index.d.ts.map +1 -0
  46. package/dist/types/src/controllers/local_config_persistence.d.ts +21 -0
  47. package/dist/types/src/controllers/local_config_persistence.d.ts.map +1 -0
  48. package/dist/types/src/controllers/navigation.d.ts +214 -0
  49. package/dist/types/src/controllers/navigation.d.ts.map +1 -0
  50. package/dist/types/src/controllers/registry.d.ts +52 -0
  51. package/dist/types/src/controllers/registry.d.ts.map +1 -0
  52. package/dist/types/src/controllers/side_dialogs_controller.d.ts +68 -0
  53. package/dist/types/src/controllers/side_dialogs_controller.d.ts.map +1 -0
  54. package/dist/types/src/controllers/side_entity_controller.d.ts +90 -0
  55. package/dist/types/src/controllers/side_entity_controller.d.ts.map +1 -0
  56. package/dist/types/src/controllers/snackbar.d.ts +25 -0
  57. package/dist/types/src/controllers/snackbar.d.ts.map +1 -0
  58. package/dist/types/src/controllers/storage.d.ts +174 -0
  59. package/dist/types/src/controllers/storage.d.ts.map +1 -0
  60. package/dist/types/src/index.d.ts +5 -0
  61. package/dist/types/src/index.d.ts.map +1 -0
  62. package/dist/types/src/rebase_context.d.ts +102 -0
  63. package/dist/types/src/rebase_context.d.ts.map +1 -0
  64. package/dist/types/src/types/backend.d.ts +534 -0
  65. package/dist/types/src/types/backend.d.ts.map +1 -0
  66. package/dist/types/src/types/builders.d.ts +15 -0
  67. package/dist/types/src/types/builders.d.ts.map +1 -0
  68. package/dist/types/src/types/chips.d.ts +6 -0
  69. package/dist/types/src/types/chips.d.ts.map +1 -0
  70. package/dist/types/src/types/collections.d.ts +813 -0
  71. package/dist/types/src/types/collections.d.ts.map +1 -0
  72. package/dist/types/src/types/data_source.d.ts +65 -0
  73. package/dist/types/src/types/data_source.d.ts.map +1 -0
  74. package/dist/types/src/types/entities.d.ts +146 -0
  75. package/dist/types/src/types/entities.d.ts.map +1 -0
  76. package/dist/types/src/types/entity_actions.d.ts +99 -0
  77. package/dist/types/src/types/entity_actions.d.ts.map +1 -0
  78. package/dist/types/src/types/entity_callbacks.d.ts +174 -0
  79. package/dist/types/src/types/entity_callbacks.d.ts.map +1 -0
  80. package/dist/types/src/types/entity_link_builder.d.ts +8 -0
  81. package/dist/types/src/types/entity_link_builder.d.ts.map +1 -0
  82. package/dist/types/src/types/entity_overrides.d.ts +10 -0
  83. package/dist/types/src/types/entity_overrides.d.ts.map +1 -0
  84. package/dist/types/src/types/entity_views.d.ts +62 -0
  85. package/dist/types/src/types/entity_views.d.ts.map +1 -0
  86. package/dist/types/src/types/export_import.d.ts +22 -0
  87. package/dist/types/src/types/export_import.d.ts.map +1 -0
  88. package/dist/types/src/types/index.d.ts +23 -0
  89. package/dist/types/src/types/index.d.ts.map +1 -0
  90. package/dist/types/src/types/locales.d.ts +5 -0
  91. package/dist/types/src/types/locales.d.ts.map +1 -0
  92. package/dist/types/src/types/modify_collections.d.ts +6 -0
  93. package/dist/types/src/types/modify_collections.d.ts.map +1 -0
  94. package/dist/types/src/types/plugins.d.ts +226 -0
  95. package/dist/types/src/types/plugins.d.ts.map +1 -0
  96. package/dist/types/src/types/properties.d.ts +1092 -0
  97. package/dist/types/src/types/properties.d.ts.map +1 -0
  98. package/dist/types/src/types/property_config.d.ts +71 -0
  99. package/dist/types/src/types/property_config.d.ts.map +1 -0
  100. package/dist/types/src/types/relations.d.ts +337 -0
  101. package/dist/types/src/types/relations.d.ts.map +1 -0
  102. package/dist/types/src/types/slots.d.ts +229 -0
  103. package/dist/types/src/types/slots.d.ts.map +1 -0
  104. package/dist/types/src/types/translations.d.ts +827 -0
  105. package/dist/types/src/types/translations.d.ts.map +1 -0
  106. package/dist/types/src/types/user_management_delegate.d.ts +121 -0
  107. package/dist/types/src/types/user_management_delegate.d.ts.map +1 -0
  108. package/dist/types/src/types/websockets.d.ts +79 -0
  109. package/dist/types/src/types/websockets.d.ts.map +1 -0
  110. package/dist/types/src/users/index.d.ts +3 -0
  111. package/dist/types/src/users/index.d.ts.map +1 -0
  112. package/dist/types/src/users/roles.d.ts +23 -0
  113. package/dist/types/src/users/roles.d.ts.map +1 -0
  114. package/dist/types/src/users/user.d.ts +47 -0
  115. package/dist/types/src/users/user.d.ts.map +1 -0
  116. package/package.json +81 -0
  117. package/src/connection.ts +60 -0
  118. package/src/db/MongoConditionBuilder.ts +181 -0
  119. package/src/db/MongoEntityService.ts +350 -0
  120. package/src/factory.ts +274 -0
  121. package/src/index.ts +24 -0
  122. package/src/services/MongoDriver.ts +267 -0
  123. package/src/services/MongoRealtimeService.ts +295 -0
  124. package/src/useMongoDriver.ts +516 -0
  125. package/src/utils.ts +28 -0
@@ -0,0 +1,65 @@
1
+ /**
2
+ * MongoDB Realtime Service
3
+ *
4
+ * Implements RealtimeProvider interface using MongoDB Change Streams.
5
+ * Provides real-time subscriptions to collection and entity changes.
6
+ */
7
+ import { Db, ChangeStream } from "mongodb";
8
+ import { Entity, RealtimeProvider, CollectionSubscriptionConfig, EntitySubscriptionConfig } from "@rebasepro/types";
9
+ interface Subscription {
10
+ type: "collection" | "entity";
11
+ config: CollectionSubscriptionConfig | EntitySubscriptionConfig;
12
+ changeStream?: ChangeStream;
13
+ callback?: (data: any) => void;
14
+ }
15
+ /**
16
+ * MongoDB Realtime Service
17
+ *
18
+ * Implements real-time subscriptions using MongoDB Change Streams.
19
+ * Requires MongoDB replica set for change streams to work.
20
+ */
21
+ export declare class MongoRealtimeService implements RealtimeProvider {
22
+ private db;
23
+ private subscriptions;
24
+ private entityService;
25
+ constructor(db: Db);
26
+ /**
27
+ * Get the collection name from a path
28
+ */
29
+ private getCollectionName;
30
+ /**
31
+ * Subscribe to collection changes
32
+ */
33
+ subscribeToCollection(subscriptionId: string, config: CollectionSubscriptionConfig, callback?: (entities: Entity[]) => void): void;
34
+ /**
35
+ * Fetch collection and notify callback
36
+ */
37
+ private fetchAndNotifyCollection;
38
+ /**
39
+ * Subscribe to single entity changes
40
+ */
41
+ subscribeToEntity(subscriptionId: string, config: EntitySubscriptionConfig, callback?: (entity: Entity | null) => void): void;
42
+ /**
43
+ * Fetch entity and notify callback
44
+ */
45
+ private fetchAndNotifyEntity;
46
+ /**
47
+ * Unsubscribe from a subscription
48
+ */
49
+ unsubscribe(subscriptionId: string): void;
50
+ /**
51
+ * Notify all relevant subscribers of an entity update
52
+ * This is called after save/delete operations to push updates
53
+ */
54
+ notifyEntityUpdate(path: string, entityId: string, entity: Entity | null, _databaseId?: string): Promise<void>;
55
+ /**
56
+ * Get all active subscriptions (for debugging)
57
+ */
58
+ getSubscriptions(): Map<string, Subscription>;
59
+ /**
60
+ * Close all subscriptions
61
+ */
62
+ closeAll(): Promise<void>;
63
+ }
64
+ export {};
65
+ //# sourceMappingURL=MongoRealtimeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MongoRealtimeService.d.ts","sourceRoot":"","sources":["../../../../src/services/MongoRealtimeService.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,YAAY,EAA4C,MAAM,SAAS,CAAC;AACrF,OAAO,EACH,MAAM,EAEN,gBAAgB,EAChB,4BAA4B,EAC5B,wBAAwB,E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{ App } from "realm-web";
2
+ import { DataDriver, PropertyConfig } from "@rebasepro/types";
3
+ /**
4
+ *
5
+ */
6
+ export interface UseMongoDriverProps {
7
+ app: App;
8
+ cluster: string;
9
+ database: string;
10
+ propertyConfigs?: Record<string, PropertyConfig>;
11
+ }
12
+ /**
13
+ * Use this hook to build a {@link DataDriver} based on Firestore
14
+ * @param firebaseApp
15
+ *
16
+ */
17
+ export declare function useMongoDriver({ app, cluster, database, }: UseMongoDriverProps): DataDriver;
18
+ //# sourceMappingURL=useMongoDriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMongoDriver.d.ts","sourceRoot":"","sources":["../../../src/useMongoDriver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAA8K,cAAc,EAAkC,MAAM,kBAAkB,CAAC;AAK1Q;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CACpD;AAgBD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC3B,GAAG,EACH,OAAO,EACP,QAAQ,GACX,EAAE,mBAAmB,GAAG,UAAU,CA4ZlC"}
@@ -0,0 +1,10 @@
1
+ export declare function getEntityIndex(entities: {
2
+ id: string | number;
3
+ }[], entity: {
4
+ id: string | number;
5
+ }): number | null;
6
+ export declare function removeValueAtIndex<T>(arr: T[], index: number): T[];
7
+ export declare function addValueAtIndex<T>(arr: T[], index: number, value: T): T[];
8
+ export declare function replaceValueAtIndex<T>(arr: T[], index: number, value: T): T[];
9
+ export declare function updateValueAtIndex<T>(arr: T[], index: number, updater: (val: T) => T): T[];
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,QAAQ,EAAE;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,EAAE,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAGlH;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAIlE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAI7E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAI1F"}
@@ -0,0 +1,8 @@
1
+ export type AnalyticsController = {
2
+ /**
3
+ * Callback used to get analytics events from the CMS
4
+ */
5
+ onAnalyticsEvent?: (event: AnalyticsEvent, data?: object) => void;
6
+ };
7
+ export type AnalyticsEvent = "entity_click" | "entity_click_from_reference" | "reference_selection_clear" | "reference_selection_toggle" | "reference_selected_single" | "reference_selection_new_entity" | "edit_entity_clicked" | "entity_edited" | "new_entity_click" | "new_entity_saved" | "copy_entity_click" | "entity_copied" | "single_delete_dialog_open" | "multiple_delete_dialog_open" | "single_entity_deleted" | "multiple_entities_deleted" | "drawer_navigate_to_home" | "drawer_navigate_to_collection" | "drawer_navigate_to_view" | "home_navigate_to_collection" | "home_favorite_navigate_to_collection" | "home_navigate_to_view" | "home_navigate_to_admin_view" | "home_favorite_navigate_to_view" | "home_move_card" | "home_move_group" | "home_drop_new_group" | "collection_inline_editing" | "view_mode_changed" | "kanban_card_moved" | "kanban_column_reorder" | "kanban_property_changed" | "kanban_new_entity_in_column" | "kanban_backfill_order" | "card_view_entity_click" | "unmapped_event";
8
+ //# sourceMappingURL=analytics_controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics_controller.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/analytics_controller.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAErE,CAAA;AAED,MAAM,MAAM,cAAc,GACpB,cAAc,GACd,6BAA6B,GAE7B,2BAA2B,GAC3B,4BAA4B,GAC5B,2BAA2B,GAC3B,gCAAgC,GAEhC,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,GACnB,eAAe,GAEf,2BAA2B,GAC3B,6BAA6B,GAC7B,uBAAuB,GACvB,2BAA2B,GAE3B,yBAAyB,GACzB,+BAA+B,GAC/B,yBAAyB,GAEzB,6BAA6B,GAC7B,sCAAsC,GACtC,uBAAuB,GACvB,6BAA6B,GAC7B,gCAAgC,GAChC,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GAErB,2BAA2B,GAE3B,mBAAmB,GAEnB,mBAAmB,GACnB,uBAAuB,GACvB,yBAAyB,GACzB,6BAA6B,GAC7B,uBAAuB,GAEvB,wBAAwB,GAExB,gBAAgB,CACjB"}
@@ -0,0 +1,118 @@
1
+ import { StorageSource } from "./storage";
2
+ import { Role, User } from "../users";
3
+ import { RebaseData } from "./data";
4
+ /**
5
+ * Capabilities advertised by an auth provider.
6
+ * UI components use this to show/hide features dynamically
7
+ * (e.g. password reset, registration, session management).
8
+ * @group Hooks and utilities
9
+ */
10
+ export interface AuthCapabilities {
11
+ emailPasswordLogin?: boolean;
12
+ googleLogin?: boolean;
13
+ registration?: boolean;
14
+ passwordReset?: boolean;
15
+ sessionManagement?: boolean;
16
+ profileUpdate?: boolean;
17
+ emailVerification?: boolean;
18
+ }
19
+ /**
20
+ * Controller for retrieving the logged user or performing auth related operations.
21
+ * Note that if you are implementing your AuthController, you probably will want
22
+ * to do it as the result of a hook.
23
+ * @group Hooks and utilities
24
+ */
25
+ export type AuthController<USER extends User = User, ExtraData = unknown> = {
26
+ /**
27
+ * The user currently logged in
28
+ * The values can be: the user object, null if they skipped login
29
+ */
30
+ user: USER | null;
31
+ /**
32
+ * Initial loading flag. It is used not to display the login screen
33
+ * when the app first loads, and it has not been checked whether the user
34
+ * is logged in or not.
35
+ */
36
+ initialLoading?: boolean;
37
+ /**
38
+ * Loading flag. It is used to display a loading screen when the user is
39
+ * logging in or out.
40
+ */
41
+ authLoading: boolean;
42
+ /**
43
+ * Sign out
44
+ */
45
+ signOut: () => Promise<void>;
46
+ /**
47
+ * Error initializing the authentication
48
+ */
49
+ authError?: unknown;
50
+ /**
51
+ * Error dispatched by the auth provider
52
+ */
53
+ authProviderError?: unknown;
54
+ /**
55
+ * You can use this method to retrieve the auth token for the current user.
56
+ */
57
+ getAuthToken: () => Promise<string>;
58
+ /**
59
+ * Has the user skipped the login process
60
+ */
61
+ loginSkipped: boolean;
62
+ extra: ExtraData;
63
+ setExtra: (extra: ExtraData) => void;
64
+ setUser?(user: USER | null): void;
65
+ setUserRoles?(roles: Role[]): void;
66
+ /**
67
+ * Capabilities advertised by the auth provider.
68
+ * UI components use this to feature-detect what the backend supports.
69
+ */
70
+ capabilities?: AuthCapabilities;
71
+ };
72
+ /**
73
+ * Extended auth controller with common optional auth methods.
74
+ * Backend implementations (Rebase backend, Firebase, Supabase, etc.)
75
+ * extend this with their own backend-specific extras.
76
+ * @group Hooks and utilities
77
+ */
78
+ export interface AuthControllerExtended<USER extends User = User, ExtraData = unknown> extends AuthController<USER, ExtraData> {
79
+ /** Login with email and password */
80
+ emailPasswordLogin?(email: string, password: string): Promise<void>;
81
+ /** Login with a Google ID token or trigger Google popup */
82
+ googleLogin?(idToken: string): Promise<void>;
83
+ /** Register a new user */
84
+ register?(email: string, password: string, displayName?: string): Promise<void>;
85
+ /** Skip login (for anonymous access if enabled) */
86
+ skipLogin?(): void;
87
+ /** Request password reset email */
88
+ forgotPassword?(email: string): Promise<void>;
89
+ /** Reset password using a token */
90
+ resetPassword?(token: string, password: string): Promise<void>;
91
+ /** Change password for the authenticated user */
92
+ changePassword?(oldPassword: string, newPassword: string): Promise<void>;
93
+ /** Update user profile */
94
+ updateProfile?(displayName?: string, photoURL?: string): Promise<USER>;
95
+ }
96
+ /**
97
+ * Implement this function to allow access to specific users.
98
+ * @group Hooks and utilities
99
+ */
100
+ export type Authenticator<USER extends User = User> = (props: {
101
+ /**
102
+ * Logged-in user or null
103
+ */
104
+ user: USER | null;
105
+ /**
106
+ * AuthController
107
+ */
108
+ authController: AuthController<USER>;
109
+ /**
110
+ * Unified data access API
111
+ */
112
+ data: RebaseData;
113
+ /**
114
+ * Used storage implementation
115
+ */
116
+ storageSource: StorageSource;
117
+ }) => boolean | Promise<boolean>;
118
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/auth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,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 * Event type for authentication state changes
5
+ */
6
+ export type AuthChangeEvent = 'SIGNED_IN' | 'SIGNED_OUT' | 'TOKEN_REFRESHED' | 'USER_UPDATED';
7
+ /**
8
+ * Standard session interface representing an authenticated state
9
+ */
10
+ export interface RebaseSession {
11
+ accessToken: string;
12
+ refreshToken: string;
13
+ expiresAt: number;
14
+ user: User;
15
+ }
16
+ import { StorageSource } from "./storage";
17
+ /**
18
+ * Unified Authentication Client Interface
19
+ * Pure functional SDK interface, decoupled from UI and React hooks
20
+ */
21
+ export interface AuthClient {
22
+ /**
23
+ * Get the current user from the server or cache
24
+ */
25
+ getUser(): Promise<User | null>;
26
+ /**
27
+ * Get the currently active session
28
+ */
29
+ getSession(): RebaseSession | null;
30
+ /**
31
+ * Sign out the current user and clear local session
32
+ */
33
+ signOut(): Promise<void>;
34
+ /**
35
+ * Subscribe to authentication state changes
36
+ */
37
+ onAuthStateChange(callback: (event: AuthChangeEvent, session: RebaseSession | null) => void): () => void;
38
+ /**
39
+ * Manually refresh the session token
40
+ */
41
+ refreshSession(): Promise<RebaseSession>;
42
+ [key: string]: any;
43
+ }
44
+ /**
45
+ * Overarching abstraction that unites Data, Auth, and Storage.
46
+ * Adapters for Supabase or Firebase simply need to implement this interface.
47
+ */
48
+ export interface RebaseClient<DB = any> {
49
+ /** Unified Data access layer */
50
+ data: RebaseData;
51
+ /** Unified Authentication layer */
52
+ auth: AuthClient;
53
+ /** Unified Storage layer */
54
+ storage?: StorageSource;
55
+ /** Optional admin panel specific tasks */
56
+ admin?: any;
57
+ [key: string]: any;
58
+ }
59
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAE9F;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;CACd;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,UAAU,IAAI,aAAa,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,iBAAiB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAEzG;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAGzC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY,CAAC,EAAE,GAAG,GAAG;IAClC,gCAAgC;IAChC,IAAI,EAAE,UAAU,CAAC;IAEjB,mCAAmC;IACnC,IAAI,EAAE,UAAU,CAAC;IAEjB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,GAAG,CAAC;IAGZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
@@ -0,0 +1,45 @@
1
+ import { EntityCollection, EntityReference } from "../types";
2
+ /**
3
+ * Controller that provides access to the registered entity collections.
4
+ * @group Models
5
+ */
6
+ export type CollectionRegistryController<EC extends EntityCollection = EntityCollection<any>> = {
7
+ /**
8
+ * List of the mapped collections in the CMS.
9
+ * Each entry relates to a collection in the root database.
10
+ * Each of the navigation entries in this field
11
+ * generates an entry in the main menu.
12
+ */
13
+ collections?: EntityCollection[];
14
+ /**
15
+ * Is the registry ready to be used
16
+ */
17
+ initialised: boolean;
18
+ /**
19
+ * Get the collection configuration for a given path.
20
+ * The collection is resolved from the given path or alias.
21
+ */
22
+ getCollection: (slugOrPath: string, includeUserOverride?: boolean) => EC | undefined;
23
+ /**
24
+ * Get the raw, un-normalized collection configuration.
25
+ * This bypasses the `CollectionRegistry` normalization (such as injecting `relation` instances).
26
+ * This is strictly for the Visual Editor to manipulate AST code without persisting runtime state.
27
+ */
28
+ getRawCollection: (slugOrPath: string) => EC | undefined;
29
+ /**
30
+ * Retrieve all the related parent references for a given path
31
+ * @param path
32
+ */
33
+ getParentReferencesFromPath: (path: string) => EntityReference[];
34
+ /**
35
+ * Retrieve all the related parent collection ids for a given path
36
+ * @param path
37
+ */
38
+ getParentCollectionIds: (path: string) => string[];
39
+ /**
40
+ * Resolve paths from a list of ids
41
+ * @param ids
42
+ */
43
+ convertIdsToPaths: (ids: string[]) => string[];
44
+ };
45
+ //# sourceMappingURL=collection_registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection_registry.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/collection_registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,4BAA4B,CAAC,EAAE,SAAS,gBAAgB,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI;IAE5F;;;;;OAKG;IACH,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEjC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,OAAO,KAAK,EAAE,GAAG,SAAS,CAAC;IAErF;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,EAAE,GAAG,SAAS,CAAC;IAEzD;;;OAGG;IACH,2BAA2B,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,eAAe,EAAE,CAAC;IAEjE;;;OAGG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IAEnD;;;OAGG;IACH,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;CAElD,CAAC"}
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import { EntityLinkBuilder, Locale, EntityAction, EntityCustomView, RebasePlugin, PropertyConfig, SlotContribution } from "../types";
3
+ export type CustomizationController = {
4
+ /**
5
+ * Builder for generating utility links for entities
6
+ */
7
+ entityLinkBuilder?: EntityLinkBuilder;
8
+ /**
9
+ * Use plugins to modify the behaviour of the CMS.
10
+ */
11
+ plugins?: RebasePlugin[];
12
+ /**
13
+ * Pre-merged slots from plugins + direct slot contributions.
14
+ */
15
+ resolvedSlots: SlotContribution[];
16
+ /**
17
+ * List of additional custom views for entities.
18
+ * You can use the key to reference the custom view in
19
+ * the `entityViews` prop of a collection.
20
+ *
21
+ * You can also define an entity view from the UI.
22
+ */
23
+ entityViews?: EntityCustomView[];
24
+ /**
25
+ * List of actions that can be performed on entities.
26
+ * These actions are displayed in the entity view and in the collection view.
27
+ * You can later reuse these actions in the `entityActions` prop of a collection,
28
+ * by specifying the `key` of the action.
29
+ */
30
+ entityActions?: EntityAction[];
31
+ /**
32
+ * Format of the dates in the CMS.
33
+ * Defaults to 'MMMM dd, yyyy, HH:mm:ss'
34
+ */
35
+ dateTimeFormat?: string;
36
+ /**
37
+ * Locale of the CMS, currently only affecting dates
38
+ */
39
+ locale?: Locale;
40
+ /**
41
+ * Record of custom form fields to be used in the CMS.
42
+ * You can use the key to reference the custom field in
43
+ * the `propertyConfig` prop of a property in a collection.
44
+ */
45
+ propertyConfigs: Record<string, PropertyConfig>;
46
+ components?: {
47
+ /**
48
+ * Component to render when a reference is missing
49
+ */
50
+ missingReference?: React.ComponentType<{
51
+ path: string;
52
+ }>;
53
+ };
54
+ };
55
+ //# sourceMappingURL=customization_controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customization_controller.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/customization_controller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAErI,MAAM,MAAM,uBAAuB,GAAG;IAElC;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAElC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAE/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAEhD,UAAU,CAAC,EAAE;QAET;;WAEG;QACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YACnC,IAAI,EAAE,MAAM,CAAC;SAChB,CAAC,CAAC;KAEN,CAAC;CACL,CAAA"}
@@ -0,0 +1,142 @@
1
+ import { Entity, EntityValues } from "../types/entities";
2
+ /**
3
+ * Parameters for querying a collection.
4
+ * Uses PostgREST-style filter syntax for consistency between
5
+ * the SDK (HTTP) and framework (in-process) contexts.
6
+ *
7
+ * @group Data
8
+ */
9
+ export interface FindParams {
10
+ /** Maximum number of items to return (default: 20) */
11
+ limit?: number;
12
+ /** Number of items to skip */
13
+ offset?: number;
14
+ /** Page number (1-indexed), alternative to offset */
15
+ page?: number;
16
+ /**
17
+ * PostgREST-style filter object.
18
+ * Keys are field names, values use "operator.value" format.
19
+ * Operators: eq, neq, gt, gte, lt, lte, in, nin, cs (array-contains), csa (array-contains-any)
20
+ *
21
+ * @example
22
+ * { status: "eq.published" }
23
+ * { age: "gte.18" }
24
+ * { role: "in.(admin,editor)" }
25
+ */
26
+ where?: Record<string, string>;
27
+ /**
28
+ * Sort order. Format: "field:direction".
29
+ * @example "created_at:desc", "name:asc"
30
+ */
31
+ orderBy?: string;
32
+ /** Relations to include in the response */
33
+ include?: string[];
34
+ /** Full-text search string */
35
+ searchString?: string;
36
+ }
37
+ /**
38
+ * Paginated response from a collection query.
39
+ * @group Data
40
+ */
41
+ export interface FindResponse<M extends Record<string, any> = any> {
42
+ /** Array of entities matching the query */
43
+ data: Entity<M>[];
44
+ /** Pagination metadata */
45
+ meta: {
46
+ total: number;
47
+ limit: number;
48
+ offset: number;
49
+ hasMore: boolean;
50
+ };
51
+ }
52
+ /**
53
+ * A single collection's CRUD accessor.
54
+ *
55
+ * This is the unified API surface used in both:
56
+ * - The generated SDK (`client.data.products.create(...)`)
57
+ * - Framework callbacks (`context.data.products.create(...)`)
58
+ *
59
+ * @group Data
60
+ */
61
+ export interface CollectionAccessor<M extends Record<string, any> = any> {
62
+ /**
63
+ * Find multiple records with optional filtering, pagination, and sorting.
64
+ */
65
+ find(params?: FindParams): Promise<FindResponse<M>>;
66
+ /**
67
+ * Find a single record by its ID.
68
+ */
69
+ findById(id: string | number): Promise<Entity<M> | undefined>;
70
+ /**
71
+ * Create a new record.
72
+ * @param data The entity data to create.
73
+ * @param id Optional specific ID to use for the new record.
74
+ * @returns The created entity
75
+ */
76
+ create(data: Partial<EntityValues<M>>, id?: string | number): Promise<Entity<M>>;
77
+ /**
78
+ * Update an existing record by ID.
79
+ * @returns The updated entity
80
+ */
81
+ update(id: string | number, data: Partial<EntityValues<M>>): Promise<Entity<M>>;
82
+ /**
83
+ * Delete a record by ID.
84
+ */
85
+ delete(id: string | number): Promise<void>;
86
+ /**
87
+ * Subscribe to a collection for real-time updates.
88
+ * Optional method, may not be supported by all implementations (like stateless HTTP clients).
89
+ */
90
+ listen?(params: FindParams | undefined, onUpdate: (response: FindResponse<M>) => void, onError?: (error: Error) => void): () => void;
91
+ /**
92
+ * Subscribe to a single record for real-time updates.
93
+ * Optional method.
94
+ */
95
+ listenById?(id: string | number, onUpdate: (entity: Entity<M> | undefined) => void, onError?: (error: Error) => void): () => void;
96
+ /**
97
+ * Count the number of records matching the given filter.
98
+ */
99
+ count?(params?: FindParams): Promise<number>;
100
+ }
101
+ /**
102
+ * The unified data access object.
103
+ *
104
+ * Access collections as dynamic properties: `data.products.find(...)`.
105
+ * In the SDK this is backed by HTTP transport (typed, generated per-project).
106
+ * In the framework this is backed by a Proxy + in-process database driver (dynamic).
107
+ *
108
+ * @example
109
+ * // SDK
110
+ * const client = createRebaseClient({ baseUrl: "..." });
111
+ * await client.data.products.create({ name: "Camera", price: 299 });
112
+ *
113
+ * // Framework callback
114
+ * callbacks: {
115
+ * afterSave({ context }) {
116
+ * await context.data.logs.create({ action: "saved", timestamp: new Date() });
117
+ * }
118
+ * }
119
+ *
120
+ * @group Data
121
+ */
122
+ export interface RebaseData {
123
+ /**
124
+ * Get a collection accessor by slug.
125
+ * Alternative to dynamic property access for cases where
126
+ * the collection name is a variable.
127
+ *
128
+ * @example
129
+ * const accessor = data.collection("products");
130
+ * await accessor.find({ limit: 10 });
131
+ */
132
+ collection(slug: string): CollectionAccessor;
133
+ /**
134
+ * Dynamic collection accessor.
135
+ * Access any collection by its slug as a property.
136
+ *
137
+ * @example
138
+ * data.products.find({ where: { status: "eq.published" } })
139
+ */
140
+ [collectionSlug: string]: CollectionAccessor | ((slug: string) => CollectionAccessor);
141
+ }
142
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../types/src/controllers/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACvB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IAC7D,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAClB,0BAA0B;IAC1B,IAAI,EAAE;QACF,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;CACL;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IACnE;;OAEG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpD;;OAEG;IACH,QAAQ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